Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

checkgroup

This function will check if the current user is assigned to the specific $group.
The function will check for both user types and user groups.

checkgroup

Quote

checkgroup ( num $group )


Parameters
group
This is the number of the group you want to check the user for

Return Values
checkgroup() will return true if the user reside inside the given $group and false if not.

Example
Code
<?php
$group = 101;
 
if (checkgroup($group)) {
 echo "You are a member of the ".getgroupname($group)." group.";
}
?>


Output from the Example

Quote

You are a member of the % group.