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: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...