The oft-cited issue of $needle & $haystack order is moot. It's one way for array functions & one way for string functions. != inconsistent.
need and haystack are used for search functions. The very thinking in 'array' or 'string' functions as PHP has it is just proof of the madness baked in the language. We are talking search functions that happen to apply to arrays or strings. If there's a good reason for them to be that way, I'd love to hear it.
So you're saying the functions should overload their purpose & accept both string or array haystacks?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.