← All tasks
🔍
Programming Intermediate

Fix an array_search() Falsy Result Bug

⏱ 5 min ⭐ 120 XP 🔁 3 attempts allowed

What you'll do

Find the line where a loose check misinterprets a valid index of 0 as 'not found'.

Scenario

Searching for an item that happens to be at index 0 is incorrectly treated as 'item not found'.

Ready to try it?

Create a free account and try "Fix an array_search() Falsy Result Bug" free for 7 days, no card required. Earn 120 XP and track your internship progress.

Already have an account? Sign in