Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

str_repeat

(PHP 4 )

str_repeat -- 文字列を反復する

説明

string str_repeat ( string input_str, int multiplier)

input_strmultiplier 回を繰り返した文字列を返します。 multiplier は、0より大きい必要があります。

例 1str_repeat()の例

echo str_repeat("-=", 10);

出力は、"-=-=-=-=-=-=-=-=-=-=" となります。

substr_count()も参照下さい。