Why use the & sign 2 times?
I will give an example:
function &func() /// Тут { static $static = 0; $static++; return $static; } $var1 = &func(); /// Тут echo "var1:", $var1; // 1 func(); func(); echo "var1:", $var1; // 3 The documentation about this is not written! It would be more logical to write return &$static
And another question, what if we do not write an ampersand in the function specification?
And what will also be if we write an ampersand in the function indication, but not in the assignment?
&), then the value will not be updated. Also with the function - there will always be1. - mix&sign is called the “link” - mix