×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - PHP free example: How to pad a string with another string?


PHP - PHP free example: How to pad a string with another string?

You may use the special PHP function str_pad
 
<?php
 
echo str_pad("Marco", 10, ">", STR_PAD_LEFT);
 
?>
 
will display:
 
>>>>>Marco

Category: PHP

 
<< Go back