Articles → PHP → str_repeat function in PHP

str_repeat function in PHP






Purpose





Example


<!DOCTYPE html>
<html>
	<body>
		<?php
echo str_repeat("Superb!!!!!!!!!!!!!",3);
?>
	</body>
</html>



Output


Picture showing the output of str_repeat function in php

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, October 9, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250