How do I split a string?
Posted: Tue Dec 19, 2006 3:11 pm
I thought str_split would do it using the following:
But it outputs an empty array.
Code: Select all
$string = "this is what i want to split";
$split = str_split($string, " ");