Question: what is the difference between print_r and var_dump?
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.