PHP-Fusion Development

checkgroup()

Check if user is assigned to the specified user group.

Versions: 9

checkgroup( int $group ) : bool

Parameters

$group (int) (Required) The group number you want to check for the user.

Return Values

(bool) True if the user is in the group.

Examples

$group = -101;
if (checkgroup($group)) {
echo 'You are a member of the '.getgroupname($group).' group.';
}