foreach ($prefs as $who => $pref) {
if($who != 'public'){
$team_users .=$who.',';
}
}
echo $team_users;
I'd like to only display data from the array that does not contain the text 'public' in some cases it could be publicXX or public1234, etc.