Chalarangelo/30-seconds-of-php

Starts With and strpos?

ChaosExAnima opened this issue · 1 comments

Hi there!

Curious about the example for startsWith. Is there a reason 0 === strpos( $haystack, $needle ) wasn't used? If not, happy to open a PR- from my understanding, strpos is much faster.

Thanks!

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks.