> Online tutorial : str_repeat() in php
Showing posts with label str_repeat() in php. Show all posts
Showing posts with label str_repeat() in php. Show all posts

str_repeat() in php

The str_repeat() function repeats a string specified number of times.
Syntax
str_repeat(string,repeat)
Example

<?php
echo str_repeat("india",4);
?>

output
indiaindiaindiaindia