testHelloWorld. This test case basically
exercise.phpby including it.
ob_get_clean()returns the output written to STDOUT since the
echostatement into a function. The task is still to print "Hello World" but only when the helloWorld() function is called.
helloWorld()function since including the file is not enough to run the code anymore.
ageand assign "Jon Snow" and 29 respectively. A sample solution file (exercise.php) is below:
Dogand implement a function inside named
bark(). The function will return "woof woof" when it's called.