$ret = array(); # $arr = array( # array( "CUSTOM" => "1" , "CUSTNM" => "a" ) , # array( "CUSTOM" => "2" , "CUSTNM" => "b") #) foreach( $arr as $idx => $row ) { $ret[$row->CUSTOM] = $row->CUSTNM; } # $ret = array( # array("1" => "a"), # array("2" => "b") #) return $ret;


+ Recent posts