note 24251 deleted from function.str-pad by cmb
| From: | cmb@php.net | Date: | Mon, 31 Aug 2015 21:06:01 +0000 |
| Subject: | note 24251 deleted from function.str-pad by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203545@lists.php.net to get a copy of this message | ||
Note Submitter: saveloywill at netscape dot net
----
Here is my solution to the above problem.
Simply place the code in question inbetween html <pre> tags, like this:
<?php
print "<pre>";
$input = "Alien";
print str_pad($input, 10);
print "*";
print "</pre>";
?>
Thanks.