3 ms·
string: haystack, needle array: needle, haystack Beyond that, many of the functions take their ordering from their C counterparts.
by jasonlotito 14y ago
string: haystack, needle
array: needle, haystack
Beyond that, many of the functions take their ordering from their C counterparts.
- jrgnsd 14y agoGetting to know this convention a while ago has made a huge improvement in how I code PHP. I never really knew what the order for haystack / needle parameters were before I read this. Now it's easy to remember.