Can a reference or a GLOBAL be recognized as such?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xandor
Forum Newbie
Posts: 17
Joined: Fri Jul 09, 2004 9:32 am

Can a reference or a GLOBAL be recognized as such?

Post 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?
murthy
Forum Commoner
Posts: 50
Joined: Fri Aug 20, 2004 1:22 am
Location: India
Contact:

Post by murthy »

Hi,

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

Krishna
Post Reply