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 the purpose of using php?
What is split function in php?
How is it possible to set an infinite execution time for php script?
How do you check if a variable has been set in php?
How is it possible to remove escape characters from a string?
What is chrome logger?
Tell me what does the array operator '===' means?
What is a php tag?
How escape single quotes php?
Explain Creating and Naming an Array?
What is difference between readonly and constant?
How easy is php?
Tell me what is the importance of "action" attribute in a html form?
How the result set of mysql be handled in php?
What is the difference between characters 34 and x34?