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 an array in php?
How check field is empty or not in php?
What is use of in_array() function in php?
What are Routines?
What is mvc in php?
Explain how you can update memcached when you make changes to php?
What is sql injection in php?
Is php dying 2018?
Is php 5 still supported?
What is the difference between $var and $$var?
What is php default argument?
How can php and javascript interact?
What the use of var_dump()?
Do you know how to get the ip address of the client?
Is laravel easy to learn?