title: Need assistance in fetching and presenting data with PDT
body: <p>I have successfully setup Sandbo with PayPal and my own paying buttons. Now on my thankyoupage where users are redirected after a purhase I want to print the details to the user. With PDT I get the data sent, its just how I access it to present it well.</p>
  
  <p>I have the data in $keyarray and this is some of the PHP code in my pdt:
  Screenshot: <a href="http://snag.gy/PdsQH.jpg" rel="nofollow">http://snag.gy/PdsQH.jpg</a></p>
  
  <pre><code>$firstname = $keyarray['first_name'];
  $lastname = $keyarray['last_name'];
  $itemname = $keyarray['item_name'];
  $amount = $keyarray['payment_gross'];
  $id = $keyarray['item_number'];
  
  echo ("&lt;div id='welcomeText'&gt;Thank you for your purchase!&lt;/div&gt;");
  echo ("&lt;p&gt;&lt;div id='bold'&gt;Payment Details&lt;/div&gt;&lt;/p&gt;&lt;br&gt;\n");
  echo ("&lt;div class='abouttext'&gt;Name: $firstname $lastname&lt;/div&gt;\n");
  
  $string1 = 'item_number';
  $string2 = 'item_name';
  $string3 = 'quantity';
  $count = count($keyarray);
  for($idx = 1; $idx &lt; $count; $idx ++) {
  if (isset($string2) &amp;&amp; 'item_name' != null)
  echo ("&lt;div class='abouttext'&gt;Item name: ".$keyarray[$string2.$idx]."&lt;/div&gt;\n");
  echo ("&lt;div class='abouttext'&gt;Item ID: ".$keyarray[$string1.$idx]."&lt;/div&gt;\n");
  echo ("&lt;div class='abouttext'&gt;Qty: ".$keyarray[$string3.$idx]."&lt;/div&gt;\n");
  
  }
  </code></pre>
  
  <p>The problem is that it loops 65 times since it is that long. I would like to change $count = count($keyarray); to instead count the times item_number is in $keyarray, something like 
  $count = count($keyarray['item_number'); - is that possible? I could also hardcode in 10 instead of $count and make it loop 10 times, and the result wouldnt be THAT bad.</p>