On Monday 06 May 2002 06:01, Mantas Kriauciunas wrote:
> Hey PHP General List,
>
> ok i solwed the problems with line breaks.... but i didn't use
> nl12br() function. i did like this:
>
> $newz = str_replace("\n","<br>",$myrow[3]);
>
> now i am having problems with spaces
>
> text is:
> ---------------
> bla bla bla                                      foo
> ---------------
>
> and shows:
> ---------------
> bla bla bla foo
> ---------------
>
> what do i have to do to get all those spaces? as i understand(english
> is weak) nl12br() is for breaks only. what about spaces?

replace the spaces with a non-breaking space:

 &nbsp;

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
It is a lesson which all history teaches wise men, to put trust in ideas,
and not in circumstances.
                -- Emerson
*/

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

Reply via email to