Menu
Is there a function to split a string to an array with every character?
[FONT=Courier New]myString.split(“”)[/FONT]
This is the javascript function that I want to “simulate”.
Example:
[code=php]$mystring = “foobar”;
$myarray = //something
var_dump($myarray);
/*
and I want it to output something like:
Array(6){ [0]=>”f” [1]=>”o” [2]=>”o” [3]=>”b” [4]=>”a” [5]=>”r” }
*/
Any ideas? I can’t seem to find it online.