×

php · level 1 · unit 1 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

An is a clue, not a disaster.

An error is PHP saying it got stuck. Everyone gets them, even experts. The message tells you the kind of error, what went wrong, and the line number to look at.

A means PHP cannot read your code, like a sentence with words missing. Often a ; or a quote mark has gone astray. A missing ; is usually reported on the line after it.

An Error that says means PHP met a word it does not know. Forget the quotes in echo Hello; and PHP hunts for something called Hello that nobody has made.

PHP stops at the first error it meets, so fix one slip at a time and run again.