I have a load of the array entries below, what I need to know is how to loop through them making the 'internal name' the id for a select box and the 'options' the options for the select box. Any help would be greatly appreciated!!
$data['profile:details'][] = (object)(array(
"name" => __gettext("Are you circumsized? "),
"internal_name" => "circumsized",
"field_type" => "select",
"options" => array(
'yes'=>__gettext('Yes'),
'no'=>__gettext('No'),
'na'=>__gettext('Not Applicable')),
"description" =>"",
"user_type" => "person",
"category" => __gettext("Your Personal Information"),
"col1" => true,
"invisible" => false,
"required" => false,
));
$data['profile:details'][] = (object)(array(
"name" => __gettext("What type of body hair do you have?"),
"internal_name" => "body_hair",
"field_type" => "select",
"options" => array(
'yes'=>__gettext('Yes'),
'no'=>__gettext('No'),
'na'=>__gettext('Not Applicable')),
"description" =>"",
"user_type" => "person",
"category" => __gettext("Your Personal Information"),
"col1" => true,
"invisible" => false,
"required" => false,
));