Bitrix Site Manager

CUser::GetByID

CDBResult
CUser::GetByID(
 int id
)

The method GetByID returns a user by its ID as the CDBResult class instance.

Parameters

ParameterDescription
id The user ID.

See Also

Example



<?
$rsUser = CUser::GetByID(23);
$arUser = $rsUser->Fetch();
echo "<pre>"; print_r($arUser); echo "</pre>";
?>