Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Different between the var_dump() and print_r()?

Answer Posted / nimesha

Print_r will display only values,but var_dump will display
data types too

Eg :
<?php
$a = array('aaa','bbb',11);
?>

Output of var_dump :
array(3) { [0]=> string(3) "aaa" [1]=> string(3) "bbb"
[2]=> int(11) }

Output of print_r :
Array ( [0] => aaa [1] => bbb [2] => 11 )

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to use com component in php?

931


Tell me how to retrieve a cookie value?

956


What does nan stand for computer science?

910


How to write a program to make chess?

989


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

929


Name and explain five of the PHP error constants?

898


What is php in full?

883


What are the methods of array in java?

908


Tell me how do you execute a php script from the command line?

960


List functions available to sort an php array?

919


what is the scope of php in the future if any other language is developed then may be php is loss ???

14452


How to convert a character to an ascii value?

1024


Do you know how can php and html interact?

954


How to get no of arguments passed to a PHP Function?

889


How to generate a form?

1100