Using this code to get some data into a PHP array:
$currentProducts = array();
$currentProducts = $wpdb->get_results("SELECT id, feedid, size, price FROM products WHERE shopid = $shopid");
No problems getting the data into a normal PHP array.
How do I get the data into an array where the feedid is key, so I can easily and quickly check if a specific feedid exist in the array, remove a specific feedid element etc?