note 23065 added to function.str-pad
| From: | pozytron#mac#com@php.net | Date: | Mon, 08 Jul 2002 18:20:18 +0000 |
| Subject: | note 23065 added to function.str-pad | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32749@lists.php.net to get a copy of this message | ||
The trouble with cj@NOSPAM.ceejayoz.com's version over pestilenc@hotmail.com's is that
many of the times it is used, it will end up with fragments of the " " code.
For example, the following code:
<?php
echo str_pad("TESTSTRING",60," ",STR_PAD_BOTH);
?>
produces the following HTML output:
&TESTSTRING &
--
http://www.php.net/manual/en/function.str-pad.php
http://master.php.net/manage/user-notes.php?action=edit+23065
http://master.php.net/manage/user-notes.php?action=delete+23065
http://master.php.net/manage/user-notes.php?action=reject+23065