Beginner PHP
Q37 / 100

What is PHP type juggling?

Correct! Well done.

Incorrect.

The correct answer is B) PHP's automatic conversion of types in comparisons and operations

B

Correct Answer

PHP's automatic conversion of types in comparisons and operations

Explanation

PHP automatically converts types in loose comparisons. "1" == 1 is true because PHP juggles "1" to integer 1. Use === to avoid this.

Progress
37/100