← All tasks
🧮
Programming Beginner

Write a Strict in_array Check

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression that checks whether $needle exists in $haystack using strict type comparison.

Scenario

You're checking membership in an array that mixes integers and numeric strings, and need exact type matches only.

Ready to try it?

Create a free account and try "Write a Strict in_array Check" free for 7 days, no card required. Earn 90 XP and track your internship progress.

Already have an account? Sign in