#72. PHP String Str_Pad & Str_Repeat Functions
How to work PHP String Str_Pad & Str_Repeat Functions?
<?php
$str = "Hello World";
//echo str_pad($str, 23,"-");
// echo str_pad($str, 23,"-", STR_PAD_BOTH);
echo str_repeat($str,5);
?>
How to work PHP String Str_Pad & Str_Repeat Functions?
Comments
Post a Comment