explode($separator, $class) cannot be passed to reset() as the parameter $array expects a reference.