Hi, I'm just trying to find if there is some part of php that I'm not aware of that can do this.
Probably the easiest way to describe this is with an example.
In javascript, if you say:
variable = document.getElementById('object');
variable will now equal that object and will be a reference to it, so if you say variable.value = 'something', the 'object' will now have a value of object.
So variable EQUALS that object. Now if I did something like this in PHP, it just COPIES the object.
For example:
$variable = $object
and then if you said $variable->value = '5'
$variable->value would be equal to 5, but $object=>value would still be whatever it was before.
I want to know if there is a way to mimic that behavior so I can create a reference instead of a copy?
I know I'm doing a poor job at explaining this, but if anyone could help me out, I'd greatly appreciate it, please ask questions to help clarify if necessary.
Thanks guys