syntax error, unexpected token “&”, expecting end of file¶
Description¶
&
is the reference operator. It returns a reference to a value, and cannot be used standalone, or on the left part of an assignation.
Example¶
<?php
&$x;
&E_ALL;
$c = &'33';
?>
Solutions¶
Remove the whole expression.
Put this expression in another variable, with an assignation.
Put this expression in another variable, and make the reference on that variable.