How do I repeat text with a php loop based on a $variable?
I want to repeat echo("text!") as often as $variable in PHP. So, let's say: $variable = 3; Now I want the output to be: text! text! text! How do I code this as a loop? I've tried the following but…