TypeError thrown

stristr(): Argument #1 ($haystack) must be of type string, array given