View Single Post
Old 04-17-2008, 11:47 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default debug_zval_dump vs. var_dump

What is the difference between the two? They both show the same outputs pretty much. What is refcount, as in? Err, like the number of references to that variable?

Like so:
PHP Code:

$var1 
"Hello";
$var2 =& $var1;
$var3 =& $var1;

debug_zval_dump(&$var1); 

That will output a total number of 2 references? cause $var2 and $var3 are referencing $var1's variable.


So is that it? About var_dump and debug_zval_dump, one has refcount and the other doesn't? hmm..
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote