note 19029 added to function.substr
| From: | twalsh at NOSPAMgoldshielddirect dot com | Date: | Wed, 13 Feb 2002 17:41:03 +0000 |
| Subject: | note 19029 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26566@lists.php.net to get a copy of this message | ||
An alternate option for retrieving the first, second, etc character of a string is:
$string{0} //for the first character in $string
$string{1} //for the second
and so on...
--
http://www.php.net/manual/en/function.substr.php
http://master.php.net/manage/user-notes.php?action=edit+19029
http://master.php.net/manage/user-notes.php?action=delete+19029
http://master.php.net/manage/user-notes.php?action=reject+19029