RE: [PHP] explode(" ", $pizza)
| From: | Tim | Date: | Tue, 25 Feb 2003 11:15:47 +0000 |
| Subject: | RE: [PHP] explode(" ", $pizza) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137057@lists.php.net to get a copy of this message | ||
The following example illustrates the use of the split method.
function SplitDemo(){
var s, ss;
var s = "The rain in Spain falls mainly in the plain.";
// Split at each space character.
ss = s.split(" ");
return(ss);
}
HTH
t.
> -----Message d'origine-----
> De : John Taylor-Johnston [mailto:taylorjo@collegesherbrooke.qc.ca]
> Envoye : mardi 25 fevrier 2003 07:22
> A : php-general@lists.php.net
> Objet : [PHP] explode(" ", $pizza)
>
>
> Off topic :) ?
> Anyone know how to explode using javascript?
>
> $pieces = explode(" ", $pizza);
>
> John
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>