hi i'm trying to split a sentence separated by 'spaces'.
$str="de0* 1500 00.c0.95.e3.2b.b4 0 0 0 0 0"
$spl_string = split(" ", $str);
echo"$spl_string[0]:$spl_string[1]:$spl_string[2]:$spl_string[3]";
does not display anything, why?
Apart from a missing semicolon on that first line, your example works for me.
PS, I'd recommend using explode() instead of split() in this case - it's faster.