Hi, Read about ereg_replace() function in PHP. some thing like $string = ereg_replace(" ","\n",$string) should do the trick for you. HTH Jaski At 01:00 PM 2/5/01 +0000, Sam wrote: >Hi all, > >I was wondering if it is possible to break up a line of text from a >database, and split it into separate links, > >eg > >Original line > Hi my name is Sam Rose > >Which can then be broken down into > Hi > My > Names > is > Sam Rose > >Thanks in advance >Sam > >-- >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] > -- 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]