note 96946 deleted from function.lcfirst by danbrown

From: Date: Wed, 24 Mar 2010 15:40:01 +0000
Subject: note 96946 deleted from function.lcfirst by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167349@lists.php.net to get a copy of this message
Note Submitter: matthijs at waag dot org ---- 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); :(

« previous php.notes (#167349) next »