Once I pass a variable inside a function as a reference, if I later access it, is it still a reference or..?
Example:
function one(){
$variables = array('zee', 'bee', 'kee');
$useLater =& $variables;
two($variables);
}
function two($reference){
foreach($reference as $variable){
echo 'reference or variable, that is the question...';
}
}
In function two();
are the variables here a reference to previously set $variables or a new element is created (in memory, I guess..)?
Plus, one more, is there a way to check if variable is passed by reference or not? (like: is_reference();
)