#72. PHP String Str_Pad & Str_Repeat Functions

 How to work PHP String Str_Pad & Str_Repeat Functions?



Run Code:

<?php

$str = "Hello World";

//echo str_pad($str, 23,"-");

// echo str_pad($str, 23,"-", STR_PAD_BOTH);

echo str_repeat($str,5);
?>


Comments

Popular posts from this blog

#30. PHP Recursive Function