hi, how to create a optgroup dynamically based on the value of an array... for eg., $data = array("apple","age","axe","alpha","beta","basic"," byte","crystal","call","c*rypt","php","apache","cg i","ajax","mysql","monkey","giga","kilobyte","spac e*","cyber","delta","gamma","germ","gemini","words ","code"); natcasesort($data); i want all the array=>values starting with letter 'a' shld be grouped like <optgroup LABEL="A"> <option VALUE="apple">apple <option VALUE="age">age <option VALUE="axe">axe </optgroup> For 'b'... <optgroup LABEL="B"> <option VALUE="beta">beta <option VALUE="basic">basic <option VALUE="byte">byte </optgroup> ......................... so on thnx
search for the programming language + forum in gogole. example for C language search : c language forum