Beginner
PHP
Q36 / 100
What does the print_r() function do?
Correct! Well done.
Incorrect.
The correct answer is B) Prints human-readable information about a variable, including array contents
B
Correct Answer
Prints human-readable information about a variable, including array contents
Explanation
print_r() displays arrays and objects in a readable format. Pass true as the second argument to return the output as a string instead of printing it.
Progress
36/100