note 43435 added to function.ucfirst

From: Date: Mon, 21 Jun 2004 16:14:01 +0000
Subject: note 43435 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-71446@lists.php.net to get a copy of this message
Note: the return for this function changed in versions 4.3 when a string is passed of length 0. In <4.2 false is returned and in >4.3 a string of length 0 is returned. Example: $name = ucfirst(""); var_dump($name); $name = ucfirst("owen"); var_dump($name); Results for <4.2: bool(false) string(4) "Owen" Results for >4.3: string(0) "" string(4) "Owen" ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43435 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43435&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43435&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71446) next »