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 is difference between explode() or split() in PHP?

500


Is php 7 backwards compatible?

605


How to enable parsing?

626


Explain me what is x+ mode in fopen() used for?

549


What exactly is PHP?

614






What is the latest version of php?

542


What is xss in php?

567


How cookies are transported from browsers to servers?

505


How to specify argument default values?

562


What is php used for?

542


Is python easier than php?

549


What is dao in php?

480


How can I prevent sql-injection in php?

598


What does the php error 'parse error in php - unexpected t_variable at line x' means?

628


How do you remove duplicates from an array?

666