Gee Wiz finding the vocab to express the question can be pretty tricky, but hopefully you can tell me what's wrong with referencing a variable in a function in order to change it.
Example:
<?php
$a = 5;
$something = 5;
function changeIt($it){
global $a;
$it = $it * $a;
};
changeIt($something);
echo $something;
?>
This returns 5, so the global variable $something hasn't been redefined.
changeItfor one, not using reference variables for another. php.net/manual/en/language.references.php . Use&$itin your function declaration instead.changeIt(). Furthermore, what do you want to change?return $it. Are you trying to modify the value of the variable that $it references in a pass by reference type of way? Make sure you specify that you are passing by referencefunction changeIt(&$it).