Recall & Review
beginner
What is a Parse Error in PHP?
A Parse Error happens when PHP finds a syntax mistake in your code, like a missing semicolon or bracket. It stops the script from running.
Click to reveal answer
beginner
What does a Fatal Error mean in PHP?
A Fatal Error occurs when PHP encounters a serious problem, like calling a function that doesn't exist. It stops the script immediately.
Click to reveal answer
beginner
Explain a Warning in PHP.
A Warning is a non-fatal error. PHP shows a message but continues running the script. For example, including a missing file triggers a warning.
Click to reveal answer
beginner
What is a Notice in PHP?
A Notice is a minor message about something that might be a problem, like using an undefined variable. It doesn't stop the script.
Click to reveal answer
intermediate
Name some common PHP error levels.
Common PHP error levels include: E_ERROR (fatal errors), E_WARNING (warnings), E_PARSE (parse errors), E_NOTICE (notices), and E_DEPRECATED (deprecated features).
Click to reveal answer
Which PHP error stops the script immediately due to a serious problem?
✗ Incorrect
Fatal Errors stop the script immediately when a serious problem occurs.
What type of PHP error is caused by a syntax mistake?
✗ Incorrect
Parse Errors happen when PHP finds syntax mistakes in the code.
Which PHP error level shows a message but allows the script to continue?
✗ Incorrect
Warnings show messages but do not stop the script.
What does a PHP Notice usually indicate?
✗ Incorrect
Notices indicate minor issues such as using undefined variables.
Which error level warns about features that will be removed in the future?
✗ Incorrect
E_DEPRECATED warns about features that are outdated and will be removed.
Describe the main PHP error types and how they affect script execution.
Think about which errors stop the script and which allow it to continue.
You got /5 concepts.
List and explain at least three PHP error levels and give an example of when each might occur.
Consider errors that stop the script, warnings, and minor notices.
You got /4 concepts.