This content is not available in your language yet.
// Метод для создания пользователя public static function createUser($phone) { $userClass = new CUser; $arFields = Array( "NAME" => "Новый", "LAST_NAME" => "Пользователь", "PERSONAL_PHONE" => $phone, "PASSWORD" => "123456", "CONFIRM_PASSWORD" => "123456", ); $user = $userClass->Add($arFields); return $user; }