0) { echo $vars["value"]; } if (!empty($vars["value"]) && !(substr_count($vars["value"], "[") > 0)) { $schools = getSchoolsFromIDs($vars['value']); $result = ""; foreach($schools as $school) { if(!empty($result)) { $result .= ", "; } $result .= $school->school_name; } echo $result; } ?>