Skip to main content
๐Ÿ› Bug HuntPH PHP Mediumโšก+20 XP

Wrong String Comparison

This comparison gives unexpected results.

๐Ÿ› Find the bug
1if ($password == 0) {
2 // grants access!
3}
๐Ÿ› The bug is on line 1

๐Ÿ”ง Select the correct fix: