str_repeat
(PHP4 >= 4.0b4)
str_repeat --- 重複字串
語法 :
string str_repeat(string input, int multiplier)說明 :
傳回 input重複 multiplier次後的字串,參數 multiplier必須大於 0。
Example :
<?php
echo str_repeat ("-=", 10);
?>
上面的範例將會輸出 "-=-=-=-=-=-=-=-=-=-="。
注意 : 此函式是PHP4.0中新增的函式