note 96946 added to function.lcfirst

From: Date: Wed, 24 Mar 2010 15:19:20 +0000
Subject: note 96946 added to function.lcfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-167346@lists.php.net to get a copy of this message
if < PHP 5.3: $string{0} = strtolower($string{0}); is fine, but the {} has been deprected as of 5.3 For code running on both platforms, you'll have to come up with something else... e.g. substr_replace( $string, strtolower(substr($string, 0, 1)), 0, 1); :( ---- Server IP: 69.147.83.197 Probable Submitter: 195.169.148.4 ---- Manual Page -- http://www.php.net/manual/en/function.lcfirst.php Edit -- https://master.php.net/note/edit/96946 Del: integrated -- https://master.php.net/note/delete/96946/integrated Del: useless -- https://master.php.net/note/delete/96946/useless Del: bad code -- https://master.php.net/note/delete/96946/bad+code Del: spam -- https://master.php.net/note/delete/96946/spam Del: non-english -- https://master.php.net/note/delete/96946/non-english Del: in docs -- https://master.php.net/note/delete/96946/in+docs Del: other reasons-- https://master.php.net/note/delete/96946 Reject -- https://master.php.net/note/reject/96946 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167346) next »