Jump to content

PHP IS_REFERENCE - can you find if a variable is a reference?


mr.davin

Recommended Posts

Is there a way to determine if a variable is a reference to another variable?

 

You can determine and object type with functions such as is_array() and is_object().

 

I want to determine if a variable is a reference so I can store a single copy of that reference into the session then rebuild that reference on the other side of a session. I am building a class to take referenced php objects and php objects and serializing them so they will be stored correctly in a $_SESSION []

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.