syntax error, unexpected token “exit”¶
Description¶
This error reports a badly placed exit
or die
command. Both of them are represented with the same exit
token, hence the naming of the error.
Example¶
<?php
$a = 1
die();
?>
Solutions¶
Make sure the previous instruction is complete, with its semi-colon.