-
- posted 2½ years ago
- 5 comments
php's foreach on a string? you can do that.
read
Reminder to self:
Normally, to do a foreach, the array must be something like:
array("oliver", "nassar")I've run into a situation where I didn't know if a variable (lets say $wtf) was an array or just a string. Running foreach on a string results in the warning: