id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 27765,Add ARRAY_K return type to wpdb::get_results(),jdgrimes,,"This is a request to add the `ARRAY_K` return type to `wpdb::get_results()` to compliment the `OBJECT_K` type (#5286). This would cause the method to return an array of associative arrays indexed by the value of the first column. In other words, like `ARRAY_A` except indexed by the first column's value. {{{ Array ( ['value_1'] => Array ( ['col_1'] => ['value_1'] ['col_2'] => ['value_2'] ) ... ) }}} I've thought to myself on multiple occasions that this would have been nice to have. Apparently nobody else has though (or didn't think it was worth a ticket), so maybe there really aren't that many use-cases for it.",enhancement,closed,normal,,Database,3.8,normal,wontfix,has-patch close,,