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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!