Posted By

Tamedo on 07/31/08


Tagged


Versions (?)

LIMIT PHP ARRAY RESULTS


 / Published in: PHP
 

  1. $count = 0;
  2. foreach ($records as $record) {
  3. print $record["NAME"];
  4. print $record["PRICE"];
  5. print $record["PRICE-CURRENCY"];
  6. print $record["PRODUCTURL"];
  7. print $record["IMAGEURL"];
  8. $count++;
  9. if ($count == 5) break;
  10. }

Report this snippet  

You need to login to post a comment.