array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.str-repeat.php', 1 => 'str_repeat', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'Dizge İşlevleri', ), 'prev' => array ( 0 => 'function.str-pad.php', 1 => 'str_pad', ), 'next' => array ( 0 => 'function.str-replace.php', 1 => 'str_replace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/strings/functions/str-repeat.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
str_repeat — Bir dizgeyi yineler
girdi
dizgesinin çarpan
kere
yinelendiği dizge ile döner.
girdi
Yinelenecek dizge.
çarpan
Dizgenin yinelenme sayısı.
çarpan
0 veya sıfırdan büyük bir değer olmalıdır.
Eğer çarpan
0 ise, işlev boş dizge döndürür.
Yinelenmiş dizge döner.
Örnek 1 - str_repeat() örneği
<?php
echo str_repeat("-=", 10);
?>
Yukarıdaki örneğin çıktısı:
-=-=-=-=-=-=-=-=-=-=