Different between the var_dump() and print_r()?

Answer Posted / kiran

var_dump also displays the variable type (int, string,
array, etc.) and "length".

Examples: http://marc.info/?l=php-general&m=98684689426976&w=2
__________________

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the characteristics of php variables?

527


What is PHP's configuration file called?

570


Is laravel better than codeigniter?

553


How cookies are transported from servers to browsers?

521


Explain PHP?

620






Explain object-oriented methodology in php?

587


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

538


What are the rules to determine the “truth” of any value which is not already of the boolean type?

520


How do http requests work?

500


How to remove the new line character from the end of a text line?

518


Is polymorphism inherited?

530


What is faster?

562


What is substr in php?

533


Does wordpress run on php 7?

515


What is traits? How it is used in php?

557