function make_reference(){
global $a,$b;
$b = &$a;
}
$a = true;
$b = false;
make_reference();
//now $b is still false:
//----------------------------
//the same with ::
function make_reference(&$b){
global $a;
$b = &$a;
}
$a = true
$b = false;
make_reference($b);
//-----------------------------------
Well in this case a could make $a =&$b;
but it isn't that easy. I'd like to make something like a Objectmanager.
All the objects are stored in an Array.
now i'd like to make with the function get_object();
to return a reference to such an object.
how can i do this.. it seems to be unpossible.
could anybody help me please.
thanks
Mäni