Answer the question
In order to leave comments, you need to log in
How to assign a value to an array element?
There is an array of data
$info[] = array(
'id' => $row['id'],
'first' => $row['first_name'],
'second' => $row['second_name'],
$user = new CUser;
$arFields = Array(
"NAME" => "Сергей",
"LAST_NAME" => "Иванов",
"EMAIL" => "[email protected]",
"LOGIN" => "ivan",
"LID" => "ru",
"ACTIVE" => "Y",
"GROUP_ID" => array(10,11),
"PASSWORD" => "123456",
"CONFIRM_PASSWORD" => "123456",
"PERSONAL_PHOTO" => $arIMAGE
);
$ID = $user->Add($arFields);
if (intval($ID) > 0)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question