TypeError thrown

preg_split(): Argument #2 ($subject) must be of type string, array given