function separator($type=DIR_SEPARATOR_LOCAL) { switch ($type) { case DIR_SEPARATOR_LOCAL: return sys :: file_separator(); case DIR_SEPARATOR_UNIX: return '/'; case DIR_SEPARATOR_DOS: return "\\"; } return null; }