explode a string
Posted: Fri Feb 06, 2009 10:43 pm
I want to explode a string into an array where all of the letters are a value to the array...
Let's say I have the following string for example...
$str = "abs12fg";
I want that to become equivalent to
array('a', 'b', 's', '1', '2', 'f', 'g');
I've tried explode('', $str); & split()lbut that doesn't help... thanks.
Let's say I have the following string for example...
$str = "abs12fg";
I want that to become equivalent to
array('a', 'b', 's', '1', '2', 'f', 'g');
I've tried explode('', $str); & split()lbut that doesn't help... thanks.