← All tasks
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 subscribe to take "Write a Strict in_array Check". Earn 90 XP and track your internship progress.
Already have an account? Sign in