getFieldUnivList($req_univ); $array_selector = array(); foreach($t as $k=>$v) { $array_selector[$k]['t']=$v['desc_t']; $array_selector[$k]['f']=$v['desc_f']; } $origine = "ARRAY"; break; default: break; endswitch; switch ($origine): case 'ARRAY': $i=1; while(list($index, $value) = each($array_selector)) { if (strtolower(substr($value['f'],0,strlen($start)))==strtolower($start)) { echo "
".$value['t']."-".$value['f']."
"; $i++; } } break; default: break; endswitch;