Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

In PHP 8, what is the result of 0 == "foo"?

  1. A true
  2. B false
  3. C null
  4. D A fatal error
Answer

false

PHP 8 changed the rule so the number is cast to a string rather than the string to a number. In PHP 7 this returned true.

All Php MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as