PHP str_repeat() İşlev
Örnek
"Vay canına" dizesini 13 kez tekrarlayın:
<?php
echo str_repeat("Wow",13);
?>
Tanım ve Kullanım
str_repeat() işlevi, bir dizeyi belirtilen sayıda yineler.
Sözdizimi
str_repeat(string,repeat)
Parametre Değerleri
Parameter | Description |
---|---|
string | Required. Specifies the string to repeat |
repeat | Required. Specifies the number of times the string will be repeated. Must be greater or equal to 0 |
Teknik detaylar
Geri dönüş değeri: | Tekrarlanan dizeyi döndürür |
---|---|
PHP Sürümü: | 4+ |
❮ PHP Dize Referansı