PHP Array result set into category wise multi select.
public function FormatEducationOnJobApplicants($Education, $SelectedEducation = '')
{
$EducationCategory = array();
$Select = '';
$OptGroup = '';
foreach($Education as $Row)
{
if(!in_array($Row['EducationCategory'], $EducationCategory))
{
if($OptGroup != '')
{
$Select .= "";
}
array_push($EducationCategory, $Row['EducationCategory']);
$Select .= "";
}
return $Select;
}
No comments:
Post a Comment