findAll('class_id=:clid',array(':clid'=>$classId)); if (!empty($getInfo)) { foreach ($getInfo as $val) { $result[$val->student_id] = $val->userno; } } } return $result; } }