Reply to Re: echo multiple space chars to html

Your name:

Reply:


Posted by Rik on 03/14/07 19:00

Richard <donotuse@funpods.com> wrote:

> Hi there,
>
> Is there a string filter function that can help me to echo a string with
> multiple space chars "from here- -to here" so that the
> spaces are maintained in the html and doesn't appear with the white space
> collapsed ....
>
> from here- -to here
>
> in the browser?
>
> htmlentities() doesn't seem to solve it, Thank you for your time!

Either echo it in a <pre> element (recommended!) or do a str_replace('
','&nbsp;',$string);

--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация