Practice mode PHP

Which PHP statement stops the script with a fatal error if the file being included cannot be found?

Correct answer A. require

Explanation

require produces a fatal error and halts the script when the file is missing, whereas include only issues a warning and continues.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.