Kevin Stone wrote:

Actually as far as the computer knows strings *are* arrays.  Access any
character within a string in the same mannor as you would access an element
in an array.  For example:

$str = "hello world";
echo $str[4]; // prints o
echo $str[6]; // prints w

That works but is deprecated. Use curlies.


http://www.php.net/manual/en/language.types.string.php#language.types.string.substr



Erik


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to