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
What is cookie?
Is array a key php?
How can we connect to a mysql database from a php script?
What is the difference between nowdoc and heredoc?
What is the name of the scripting engine that powers PHP?
How to remove duplicate values from a PHP Array?
What are the advantages of stored procedures?
What are getters and setters php?
Tell me how do you define a constant?
How to randomly retrieve a value from an array?
Is key exist in array php?
How to select a database in php?
Do you know what is the function mysql_pconnect() usefull for?
What is the use of namespace in php?
Why super () is used in java?