leatherback: that's interesting. I never knew that. But $string isn't actually an array.
You can access what would be array keys by doing $string[0] and $string[1] and so forth, but if you try to put $string in a foreach loop, it doesn't accept it as a valid argument for an array.
$string = "SomeStrangeString";
foreach($string as $key => $value) {
echo "Key is: " . $key . ". Value is: " . $value . "<br>";
}
The above produces the following error:
Warning: Invalid argument supplied for foreach() in /home/webs/your_server/http/html/theFile.php on line 5
So a string isn't actually an array, but you can access each letter individually by adding numeric indices to the variable.
Cgraz