← All tasks
What you'll do
Read a chart comparing execution time for a simple substring check using strpos() versus preg_match().
Scenario
You just need to check if a string contains a fixed substring, and want to pick the faster tool for the job.
Ready to try it?
Create a free account and subscribe to take "Compare String Function Speed: strpos vs preg_match". Earn 90 XP and track your internship progress.
Already have an account? Sign in