Home>IT Tests>Questions>What is the output of the following PHP code?
```
$a = null;
$b = 0;
echo $a === $b;
```
Options:
- 1
- 0
- null
- false
- undefined
Explanation: The === operator runs before type coercion.
Running this script will output "bar".
Null and 0 are not strictly equal.
Question from the PHP5 test
What is the output of the following PHP code? ``` $a = null; $b = 0; echo $a === $b; ``` Options: - 1 - 0 - null - false - undefined Explanation: The === operator runs before type coercion. Running this script will output "bar". Null and 0 are not strictly equal.
Hard
Author: Mathieu RobinStatus: PublishedQuestion passed 58 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about PHP