I am trying to get some values from an array. my code below i need to get a comma separated values the values from the sku KEY, i am just not sure how to do it.
Example output I need: sku,sku,sku
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId);
$orderItems = array();
foreach($order->getItemsCollection() as $item)
{
//$product = Mage::getModel('catalog/product')->load($item->getProductId());
$row=array();
$row['sku'] = $item->getProduct()->getData('model');
$orderItems[]=$row;
}
echo print_r($orderItems);