I have an array with user group ids
$arr_user_group = array();
and a Query that select all users from my Database with their user group
array_push($arr_user_group, $row3['group']);
result with print_r($arr_user_group);
Array ( [0] => 2 [1] => 5 [2] => 3 [3] => 5 [4] => 1)
now what i need is to assign each number ([...] => number(2,5,3,5,1)) a name like
1 = Admin
2 = Member
3 = Ipsum
4 = Lorem
5 = Guest
...what is the best way to do this? my output on the page is for example "2" but i need the name "Member"
if( isset($arr_user_group[0]) && '5'=== $arr_user_group[1] ) {
$arr_user_group[1] = "Group5";
}