user63365
0
Q:

what is str_pad in php

<?php 
   $str = "Geeks for geeks"; 
   echo str_pad($str, 26, " Contribute", STR_PAD_RIGHT);  
?> 
0
<?php 
   $str = "Geeks for geeks"; 
   echo str_pad($str, 21, ":-)", STR_PAD_BOTH);  
?> 
0

New to Communities?

Join the community