Documentation

GetByID

CDBResult
CUser::GetByID(
 int id
)

The method returns returns a user by its ID as the CDBResult class object. Static method.

Parameters

ParameterDescription
id User ID.

See Also

Examples of use

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


© «Bitrix24», 2001-2022
Up