How do you print an array variable?
-
echo
-
print_r
-
display
-
all the above
B
Correct answer
Explanation
The print_r function formats and outputs human-readable information about a variable, including complex structures like arrays. Using echo directly on an array produces an Array-to-string conversion notice and prints only the word 'Array'.