PHP str_repeat() May 22, 2012 Pramod T P It repeats a string Example <?php echo str_repeat(“php code”, 5); ?> Output php codephp codephp codephp codephp code Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...