I have a string such as:
"0123456789"and need to split EACH character into an array. I for the hell of it tried:
But it gave me the obvious: Warning: No delimiter defined in explode) ..How would I come across this? I can't see any method off hand, especially just a function |
|||
add a comment
|
str_split also takes a 2nd param, the chunk length, so you can do things like:
You can also get at parts of your string by treating it as an array:
|