" ); foreach( $arr as $k => $v ){ if( $selected == $k ){ $s = "SELECTED"; }else{ $s = ""; } print( "