Question: Write a PHP function 'helloWorld' that returns a string containing the text HELLO WORLD a number of times as specified by the $count argument.
Write a PHP function 'helloWorld' that returns a string containing the text "HELLO WORLD " a number of times as specified by the $count argument. It is important that your function include the end of line character as shown.
An example of your function being called might be: echo helloWorld(3); This would return the following:
HELLO WORLD HELLO WORLD HELLO WORLD
To get you started, here is the answer to this first question. You can either copy/paste this answer into the editor or you can answer this question in a different way, if you choose.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
