I've two arrays $products and $id_n_qty $id_n_qty array contains Product id and its quantity where $products array contains all products with their IDs and name.
$products = array(1=>"Shampoo",2=>"Towel");
$id_n_qty = array(1=>3);
My question is how can i get the Product name when i have the $id_n_qty with me without using php foreach?
Thanks