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