$users = [
'1' => 'Admin',
'2' => 'user',
]
echo $users['1']; // Admin
echo $users['2']; // user
$search = 1;
$found = null;
while (!$found && $user = each ($users)) {
echo $user[0] . "\t - \t" . $user[1] . "<br><br>\n\n";
if ($user[0] === $search) {
$found = $user;
}
}