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:[EMAIL PROTECTED]
> Envoye : mardi 25 fevrier 2003 07:22
> A : [EMAIL PROTECTED]
> 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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to