mitya
10-28-2003, 10:50 AM
Hi all
In PHP, if I want to break apart a string and handle different parts of it individually, I'd use explode(), so the following would return an array with three keys, each holding '0'.
$string = "0---0---0";
$array = explode("---", $string);
Can anyone tell me if this can be done in JS?
In PHP, if I want to break apart a string and handle different parts of it individually, I'd use explode(), so the following would return an array with three keys, each holding '0'.
$string = "0---0---0";
$array = explode("---", $string);
Can anyone tell me if this can be done in JS?