syntax error, unexpected token “=”, expecting identifier¶
Description¶
In this error, the declared optin name value has been removed. It could be strict_types, ticks or encoding.
Example¶
<?php
declare(= 1);
declare(= 'iso-8859-1');
?>
Solutions¶
Add
strict_typesbefore the=operator.Add
ticksbefore the=operator.Add
encodingbefore the=operator.Remove the
declarecall.