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();
?>
Alternatives
- Make sure the previous instruction is complete, with its semi-colon.