note 17863 deleted from function.str-repeat by jimw
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 11:53:33 +0000 |
| Subject: | note 17863 deleted from function.str-repeat by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24243@lists.php.net to get a copy of this message | ||
The function str_repeat() doesn't seem to work when generating spaces for web page output.
There's a reason for this: the web browser is removing the excess spaces and, instead,
displaying only one space. So, two ideas:
1. If you were just checking your work by outputting variables on the screen, then don't worry.
It's actually working right. You just can't see it.
2. If you really want the spaces to appear on the web page, use the function this way:
str_repeat(" ",$num);
Hope this helps.