ParseError
A ParseError is thrown when an error occurs while parsing PHP code, such as when eval() is called or when including non-compilable code.
<?php
try {
eval (' A A ');
} catch (ParseError $e) {
echo "This is not PHP code";
}
?>
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
A ParseError is thrown when an error occurs while parsing PHP code, such as when eval() is called or when including non-compilable code.
<?php
try {
eval (' A A ');
} catch (ParseError $e) {
echo "This is not PHP code";
}
?>