title: Accessing custom options of an order in Magento via PHP
body: <p>I'm loading an order like this:</p>
  
  <pre class="lang-php prettyprint-override"><code>$order = Mage::getModel('sales/order')-&gt;load(2886);
  $items = $order-&gt;getAllItems();
  </code></pre>
  
  <p>Then I use a foreach loop:</p>
  
  <pre><code>foreach ($items as $itemId =&gt; $item){
      $name[] = $item-&gt;getName();
      $unitPrice[]=$item-&gt;getPrice();
      $sku[]=$item-&gt;getSku();
      $ids[]=$item-&gt;getProductId();
      $qty[]=$item-&gt;getQtyToInvoice();
  }
  </code></pre>
  
  <p>And I am able to get most of the data I need.  However, I'm having problems getting the custom options that were selected for the order.  I can see the data in a var dump, but I have had no success in mining it out.  I've also tried a handful of built in functions that I found via google, but no luck.</p>