TypeError thrown

array_diff(): Argument #2 must be of type array, string given