Page 1 of 1

Can a reference or a GLOBAL be recognized as such?

Posted: Fri Aug 20, 2004 9:56 am
by xandor
Is it possible to tell whether a variable passed to a function is actually a reference. In other words, I would like something like a "is_reference()" function. Perhaps there is a way to "flag" the variable (in its declaration, say), to help facilitate this?

(I'm not hopeful...)

Also (in a similar vein..) is there a way to recognize whether a passed variable is in fact a GLOBAL?

Posted: Fri Aug 20, 2004 10:11 am
by murthy
Hi,

if(isset($_GLOBAL['variable_name']) .....try with this

Krishna