04-17-2008, 11:47 AM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
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
|
|
|
|