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
Why php is used with mysql?
Is php good for career?
What is the best php framework 2018?
How to remove a file?
List some array functions in php?
What are the characteristics of php?
What is use of preg_replace in php?
How to reset/destroy a cookie in php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
Difference between $message vs. $$Message in php.
Why framework is used in php?
How to connect to mysql from a php script?
How to open standard output as a file handle?
Why super () is used in java?
Write a program in php to print a table of a number?