Created
February 12, 2012 00:56
-
-
Save jkudish/1805510 to your computer and use it in GitHub Desktop.
Copy a string over and over in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$i = 0; | |
$max_iterations = 300; | |
$string_to_copy = 'your string'; | |
while ($i =< $max_iterations) { | |
echo $string_to_copy; | |
echo '<br><br>'; // just to have some space between each iteration | |
$i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment