newAxis(&$current)
Follows the link. this means that you are passing a variable.
By default, all variables in PHP are undefined.
You define them simply using, for example,
$a = 1;
As you can see, PHP does not complain that $a is undefined, right?
Ok,), see here:
$a = $b;
PHP now complains that $b is undefined.
As with $a (you define a variable) and $b (a variable is not defined), it is passed by reference or by value:
$this->newAxis($a);
The $a variable is defined when passing by reference. It carries a default value of NULL . And now an example of $b :
var_dump($b);
var_dump takes values by value. Therefore, PHP complains that $b is undefined.
And it's all. Hope this was clear enough.
hakre
source share