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.
Sign In
Not a member yet? Click here to register.
getusergroups
Gets all access levels and user groups and make one array out of them for easy access and usage.

getusergroups

Quote

getusergroups ()


Return Values
This function will return an array which contains all access levels along their names and all group ids along with their name.

Example
Code
<?php
getusergroups();
?>

Returns the output of the getusergroups() function

Output

Quote

array (
0 => array (
0 => 0,
1 => Public
),
1 => array (
0 => 101,
1 => Member
),
2 => array (
0 => 102,
1 => Administrator
),
4 => array (
0 => 103,
1 => Super Administrator
)
)


Notes
This function is executed on every page load in maincore.php, the result is stored in the $groups_array variable.
To save recourses you can simply use the $groups_array variable in stead of executing the function again!


See also …


References