I need to divide a string into multiple ones according to the spaces.
That is, I have a string containing multiple words with spaces in between.
Now I need to divide this into separate words and probably assign them to an array.
It's quite easy in Perl
@array = split(/\s+/, $string);
Any way to do this in php3
And how do we count the number of elements in an array.
Does $#array work?
Thanks