Skip to content

Instantly share code, notes, and snippets.

@jkudish
Created February 12, 2012 00:56
Show Gist options
  • Save jkudish/1805510 to your computer and use it in GitHub Desktop.
Save jkudish/1805510 to your computer and use it in GitHub Desktop.
Copy a string over and over in PHP
<?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