Quiz 9/27: Answer the following question

  • Suggested by FredBouchery
  • Created on 2020-09-11
  • Difficulty: expert

What will be displayed in current supported PHP version? (<8) 🤔

PHP Quiz n°9

Select your answer: 🧐


✅ { answer }: correct!

❌ { answer }: Wrong answer!

A numeric value can be prefixed by blank characters, but not after. The right answer was "C". This will change with PHP 8 which will accept blank characters after.
▶  Click here to run this code on 3v4l.org

Poll

  • A: not numeric: 0, not numeric: 1337 - 33.3%
    percent%
  • B: not numeric: 0, numeric: 1337 - 23.3%
    percent%
  • ✅ C: numeric: 42, not numeric: 1337 - 10%
    percent%
  • D: numeric: 42, numeric: 1337 - 33.3%
    percent%
▶  Click here to see the Twitter poll
Click here to see output differences between PHP versions

With PHP 8 the right answer is "D".



Going further... 🤓

Want More? 🤔

New random question ⏩