adspace


What is difference between var_dump and print_r?

Answer Posted / Abhay Verma

The main difference between var_dump and print_r in PHP is that var_dump provides more detailed information about variables, including data type, size, and hierarchy. print_r, on the other hand, only outputs the string representation of the variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is latest version of laravel?

869


Do you know what version of laravel do you generally use?

839


What is current stable version of laravel?

870


How much laravel experience do you have?

815


Tell us have you used lumen before?

809