Consider following code snippet:
print_r("Hello World", true);
What will return the function above?
Explanation
Syntax:
mixed print_r ( mixed $expression [, bool $return = false ] ) If you would like to capture the output of print_r(), use the return parameter. When this parameter is set to TRUE, print_r() will return the information rather than print it.
Read more: PHP: print_r - Manual

@sinevor1346 thanks! fixed

2017 Dec 6, 11:26:41 AM

print_r("Hello World", true);- will be nothing

2017 Oct 1, 4:50:48 AM

not correct answer

2017 Oct 1, 4:50:29 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes