Re: str_pad with  

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 31 Oct 2004 16:13:44 -0600, Jonel Rienton <jonel@xxxxxxxxxx> wrote:
> i was trying to do an str_pad with &nbsp; (space) but somehow it's just
> putting in one space and &nbs
> 
> sample code:
> 
> <? echo str_pad($varname,20,"&nbsp;" ?>
> 
> anybody else experienced this?

"&nbsp;" is 6 characters.  It may only appear as one character when
viewed as html, but to str_pad() it's 6 characters.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux