Bitrix Site Manager

CUser::GetByLogin

CDBResult
CUser::GetByLogin(
 string login
)

The method GetByLogin returns a user by the login as the CDBResult class instance.

Parameters

ParameterDescription
login User login.

See Also

Example



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