PHP-Fusion Development

getuserlevel()

Get a user level's name by the numeric code of level.

Versions: 9

getuserlevel( int $userlevel ) : mixed

Parameters

$userlevel (int) (Required) Level code.

Return Values

(string|null) The name of the given user level, null if does not exist.

Examples

echo getuserlevel(-102);
// Administrator

This function will not work on user group names, for that purpose we recommend you to use the getgroupname().