Different between the var_dump() and print_r()?

Answer Posted / nagachowdary

var_dump() prints values and it's datatypes.in case of
print_r() it will print only values

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create and destroy cookies in php?

500


How to define a user function?

577


Does php have a future?

514


How to take a substring from a given string in php?

522


Does php support function overloading?

570






What is the scope of a variable defined outside a function?

546


What is difference between action hook and filter hook?

496


When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?

514


What is cookie?

537


What is global array in php?

575


Do csrf tokens expire?

507


Name some of the popular frameworks in php.

555


When is a conditional statement ended with an endif?

526


How many types of arrays are there in php?

538


What is helper function?

512