Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Identify and Classify Errors | Understanding PHP Errors and Basic Exception Handling
PHP Error Handling and Exceptions
Sektion 1. Kapitel 2
single

single

bookChallenge: Identify and Classify Errors

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt