protected static function _formatError($url) { $match = array("\n", 'array (', ',)', '=> NULL', '( \'', ', '); $replace = array('', '(', ')', '=> null', '(\'', ', '); return str_replace($match, $replace, var_export($url, true)); }