note 23065 added to function.str-pad

From: 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 "&nbsp;" code. For example, the following code: <?php echo str_pad("TESTSTRING",60,"&nbsp;",STR_PAD_BOTH); ?> produces the following HTML output: &nbsp;&nbsp;&nbsp;&nbsp;&TESTSTRING&nbsp;&nbsp;&nbsp;&nbsp;& -- 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

« previous php.notes (#32749) next »