Source: php.net
Array function parameters are ordered as needle, haystack whereas String functions are the opposite, so haystack, needle.
Source: php.net
Array function parameters are ordered as needle, haystack whereas String functions are the opposite, so haystack, needle.