I need some guidance with a exercise I was set as part of my PHP class. I've tried many different methods but none that satisfy the requirements. The task is to do the following:
"Without using a for loop, any variation of string repeat, string join function or the require statement print the following text 200 times, using only 4 lines of code. “All work and no play makes jack a dull boy.”"
It's worth noting that each statement must be on it's own line and the tags count as one line each.
I'm assuming it requires the use of a while loop but I've exhausted my knowledge of PHP and simply can't come up with a solution. I'm not necessarily looking for the answer just to be pointed in the right direction.
Thank you.
Aucun commentaire:
Enregistrer un commentaire