Page 1 of 1

how can i do that array??

Posted: Sun Mar 27, 2011 12:21 pm
by buffon
hello everybody,

this string "my name is Buffon"

i want to take the parts of that string in an array without whitespace

i want the array come

Array ( [0] => my [1] => name [2] => is [3] => Buffon )

without any space

help . please with little explain

regards,
Buffon

Re: how can i do that array??

Posted: Sun Mar 27, 2011 12:44 pm
by afr_dnf2011
You can use explode function to do the purpose.

http://php.net/manual/en/function.explode.php