On Sun, 31 Oct 2004 16:13:44 -0600, Jonel Rienton <[EMAIL PROTECTED]> 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

Reply via email to