PHP str_repeat Function

Using the str_repeat function that repeats the content specified in php for as many times as desired ("content", 10). The content to be repeated can be variable or text. The number to be repeated is entered after the comma.

 

<?php
 echo str_repeat("Test",10);
 
 $degisken="abc";
 echo str_repeat($degisken,5);
?> 

 

 

The field to be repeated can be an array, you can use it in a variable or just leave a long space.
E.Albayrak

0 Yorum

Soru & Yorum


Web Tasarım

Renkli Kare

Web Tasarım Ajansı