note 19029 modified in function.substr by maxim
| From: | maxim@php.net | Date: | Thu, 08 Aug 2002 23:08:21 +0000 |
| Subject: | note 19029 modified in function.substr by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34579@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...
--was--
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