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
sort term descripttion form, report and uery
How to turn on the session support?
Do you know how can we check the value of a given variable is a number?
Does php support multiple inheritances?
What is php and sql used for?
What is meant by urlencode and urldecode?
What is the best php version for wordpress?
Is php case sensitive?
What is the difference between file_get_contents() and file_put_contents() in php?
How to update memcached when you make changes to php?
Tell me what is the main difference between php 4 and php 5?
Why php is sometimes called as embedded scripting language?
What is php good for?
What is the function used to change the root directory in PHP?
What is list function with their uses.