note 23065 deleted from function.str-pad by cmb
| From: | cmb@php.net | Date: | Mon, 31 Aug 2015 21:10:47 +0000 |
| Subject: | note 23065 deleted from function.str-pad by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203548@lists.php.net to get a copy of this message | ||
Note Submitter: pozytron#mac#com
----
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 &