Re: str_pad with
| From: | Greg Donald | Date: | Sun, 31 Oct 2004 22:33:44 +0000 |
| Subject: | Re: str_pad with | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200787@lists.php.net to get a copy of this message | ||
On Sun, 31 Oct 2004 16:13:44 -0600, Jonel Rienton <jonel@road14.com> wrote:
> i was trying to do an str_pad with (space) but somehow it's just
> putting in one space and &nbs
>
> sample code:
>
> <? echo str_pad($varname,20," " ?>
>
> anybody else experienced this?
" " 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/