On Monday 05 February 2001 13:59, jaskirat wrote:

> $string = ereg_replace(" ","\n",$string)

simpler and faster: str_replace(), explode() and split()

> >Original line
> >     Hi my name is Sam Rose
> >
> >Which can then be broken down into
> >     Hi
> >     My
> >     Names
> >     is
> >     Sam Rose

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."

- Isaac Asimov

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to