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

Can we override static method in php?

529


How to insert an new array element in array?

534


What is $row in php?

533


What is str_replace()?

539


How to execute an sql query?

511






What is the functionality of md5 function in php?

586


What is the use session in php?

546


How to block direct directory access in PHP?

553


How to set session.gc_maxlifetime properly?

561


How to remove white spaces from the beginning and/or the end of a string in php?

536


How to pass variables and data from php to javascript?

511


What is php programming used for?

500


Is php a programming language?

546


What are escaping characters? Explain with an example?

515


What is the best way to avoid email sent through php getting into the spam folder?

548