how can i do that array??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
buffon
Forum Newbie
Posts: 8
Joined: Wed Mar 23, 2011 2:58 pm

how can i do that array??

Post 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
User avatar
afr_dnf2011
Forum Newbie
Posts: 14
Joined: Mon Mar 21, 2011 8:20 pm

Re: how can i do that array??

Post by afr_dnf2011 »

You can use explode function to do the purpose.

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