References

Use =& to reference the target variable

 

$myVar = "Hello, World!" ;

 

$yourVar =& $myVar ;

 

The two variables are now pointing to the same data and a change to one is reflected in the other

Leave a Reply