Re: [PHP] explode(" ", $pizza)

2003-02-25 Thread Sascha Braun
Hi, i found something like: var s = "This,is,a,String"; lenght = s.lenght; document.write(s.bold()); t = s.substring(2,4); a = s.split(","); // This line is the most interesting one ;)) document.write(a[1]); // should write the word 'is' Dont know if it works, i just looked in one of my old boo

RE: [PHP] explode(" ", $pizza)

2003-02-25 Thread Tim
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-Johns