PHP Classes
elePHPant
Icontem

PHP Reference Variable Debug: Check if a variable is a reference to another one

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-11-01 (13 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: 55 This week: 8All time: 9,299 This week: 46Up
Version License PHP version Categories
refdebug 1.0.1Custom (specified...5PHP 5, Debug, Language
Description Author

This class can check if a variable is a reference to another one.

It can take a given variable and determines if it is an actual variable or a reference to another variable.

The class can also get the number of references that point to a given variable.

Innovation Award
PHP Programming Innovation award nominee
October 2018
Nominee
Vote
In PHP variables can contain values of a specific type, or can be references pointing to other values.

This package can not only determine if a variable is a reference to another, but can also determine the number of references that point to a given variable.

Manuel Lemos
  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 47 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 20x

Winner: 2x

Details
PHP Reference Debug is a very simple class providing static methods to check whether
or not a variable is a reference .It also allows to get a  a more precise value of the
reference count than the PHP debug_zval_dump.The package is written in pure PHP and 
has no dependency.

Remarks: the first argument of the methods must always be get_defined_vars to really
and properly defined the scope of the checked variable.(see the how to use example) 

Bug reporting to leizmo@gmail.com or in the forum.

  Files folder image Files  
File Role Description
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file readme.txt Doc. readme
Plain text file Reference.class.php Class class source
Accessible without login Plain text file testRefDebug.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:55
This week:8
All time:9,299
This week:46Up