All string functions are haystack/needle, and array functions are needle/haystack, except for array_filter().
array_filter()