I want to create a key-value pairs in an array within a foreach. Here is what I have so far:
function createOfferUrlArray($Offer) { $offerArray = array();
In PHP >= 5.3 it can be done like this:
$offerArray = array_map(function($value) { return $value[4]; }, $offer);