What is the difference between var_dump() and print_r()? var_dump function is used to display structured information about a variable with its type and value. print_r() is used to display information that is easily readable by humans. 22-August 9:16 PM 542 Views