Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Identify and Classify Errors | Understanding PHP Errors and Basic Exception Handling
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
PHP Error Handling and Exceptions
SectionΒ 1. ChapterΒ 2
single

single

bookChallenge: Identify and Classify Errors

Swipe to show menu

Task

Swipe to start coding

You are given a PHP script containing five different code issues. Your task is to classify each issue as either a notice, warning, or fatal error.

  • Assign the correct classification for each error scenario in the classifyErrors function.
  • Return an array containing the classifications in the order of the error scenarios as described in the comments.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt