Question: what is the difference between var_dump and print_r?
Answer: The var_dump function displays structured information about variables/expressions including its type and value. ... The print_r() displays information about a variable in a way that's readable by humans. array values will be presented in a format that shows keys and elements. Similar notation is used for objects.