is_ingroup
Usage: bool is_ingroup (mixed group[, int userid])
Purpose: Returns whether a user in in a group.
Availability: IPB SDK 0.3
Purpose: Returns whether a user in in a group.
Availability: IPB SDK 0.3
Returns TRUE if the user userid in in group group. If group is an array, TRUE will be returned if userid is in any of the groups in the group array.
If userid is not specified, information will be returned for the current user.
if ($SDK->is_ingroup(array("1", "3"))) {
echo 'You are either in group 1 or 3.';
}
else {
echo 'You are neither in group 1 or 3.';
}
if ($SDK->is_ingroup("7", "2")) {
echo 'User 2 is in Group 7!!!';
}
else {
echo 'User 2 is not Group 7!!!';
}
echo 'You are either in group 1 or 3.';
}
else {
echo 'You are neither in group 1 or 3.';
}
if ($SDK->is_ingroup("7", "2")) {
echo 'User 2 is in Group 7!!!';
}
else {
echo 'User 2 is not Group 7!!!';
}
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.