Re: Character Array
| From: | Richard Lynch | Date: | Thu, 11 Jul 2002 23:37:15 +0000 |
| Subject: | Re: Character Array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107293@lists.php.net to get a copy of this message | ||
>Is there an easy way to get an array of characters from a string?
For virtually anything you need to do with it, a string *IS* an array of
characters...
$foo = 'test;
echo $foo[2];
for ($i = 0; $i < strlen($foo); $i++{
echo "$i $foo[$i]<BR>\n";
}
--
Like Music? http://l-i-e.com/artists.htm