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
Is it possible to use com component in php?
Tell me how to retrieve a cookie value?
What does nan stand for computer science?
How to write a program to make chess?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
Name and explain five of the PHP error constants?
What is php in full?
What are the methods of array in java?
Tell me how do you execute a php script from the command line?
List functions available to sort an php array?
what is the scope of php in the future if any other language is developed then may be php is loss ???
How to convert a character to an ascii value?
Do you know how can php and html interact?
How to get no of arguments passed to a PHP Function?
How to generate a form?