public static function newID() { $id = ID::$ids[0]; while (in_array($id, ID::$ids)) { $id .= ID::getRandChar(); } ID::$ids[] = $id; return $id; }