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 use of inner join in mysql?
How to redirect https to http url and vice versa in .htaccess?
Explain how we can retrieve the data in the result set of mysql using php?
How many types of php are there?
Is php still relevant 2019?
Is php free to use?
How many types of php frameworks are there?
How to check a variable is array or not in php?
Is salary a ratio or interval?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
Tell me what is the difference between the functions strstr() and stristr()?
Should I learn php before wordpress?
What is the use of offset in mysql?
How to redirect https to http url through .htaccess?
What is orm in php framework?