PHP Intermediate — Hard
Key points
- Loose comparison (==) triggers type juggling.
- Non-numeric strings cast to 0 when compared to integers.
- Strict comparison (===) avoids this behavior by checking types.
Ready to go further?
Related questions
PHP Intermediate — Hard
Key points
Ready to go further?
Related questions