Page 1 of 1

How do I split a string?

Posted: Tue Dec 19, 2006 3:11 pm
by impulse()
I thought str_split would do it using the following:

Code: Select all

$string = "this is what i want to split";
$split = str_split($string, " ");
But it outputs an empty array.

Posted: Tue Dec 19, 2006 3:12 pm
by Luke