public static function checkName($name) { if (strlen($name) >= 2) { return true; } return false; }
if (trim($_POST['password']) == '') { $errors[] = "Введите пароль"; }