I tried to use foreach() with a string but it gave me the error that I provided a non valid value to foreach(). I've tried to reset() a string and it says that the string is not an array.
At the same time I can access a string value as an array, for example:
$str = "string";
echo $str[3];
This will output "i". Is a string an array or just a pseudo-array ? Can I use foreach with strings or I have to loop the string with while ? (that was my solution).
thx
Anderson