PHP-Fusion Development

getuserstatus()

Get a user status by the numeric code of status.

Versions: 9

getuserstatus( int $userstatus ) : mixed

Parameters

$userstatus (int) (Required) Status code 0 - 8.

Return Values

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

Examples

echo getuserstatus(5);
// Cancelled

0 - Active, 1 - Banned, 2 - Unactivated, 3 - Suspended, 4 - Security Banned, 5 - Cancelled, 6 - Anonymous, 7 - Deactivated, 8 - Inactive