mr.davin Posted June 21, 2007 Share Posted June 21, 2007 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 [] Link to comment https://forums.phpfreaks.com/topic/56599-php-is_reference-can-you-find-if-a-variable-is-a-reference/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.