I have a value:
$hello = "Welcome to this site";
I want to ECHO it 5 times how should this be done?
Thanks
<? for($i=0;$i<5;$i++){ $hello = "Welcome to this site"; echo $hello; }
?>
You can add htm formating such ."<br>" after the "echo $hello" .
$hello = "Welcome to this site."; for($i = 0; $i < 5; $i++) { echo $hello; }