This is because $users doesn't exist, to fix this, simple paste this code $users = ""; before the foreach foreach($array_list as $key => $value...
Separate names with a comma.