×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dmitriy Lanets
Added: Mar 23, 2016 8:38 PM
Views: 1935
Tags: no tags
  1. $items = $Order->getItems();
  2. for ($i=0; $i<count($items) && $items[$i]->getId()!=2; ++$i) {}