Hi I am new to php and hoping someone can help me
I have a variable which contains a string like this:
I can explode it and get select options ok like this- but I want to make it so country is a optgroup value rather than an option - I think I need to somehow make my array into a multideminsional one? Any help would be greatly apprecaited.
$x = explode(’,’,$location_x);
echo ‘<option ‘;
echo ’ selected=“selected” ‘;
echo ‘value="’. trim($x[$i]).’">’. trim($x[$i]).’’;