Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. $cnt = 0;
  2. $num = $articoli->count();
  3. foreach ($articoli as $a) {
  4.     if ($a->StatoEC == StatoEC::OUTLET) {
  5.         $articoli->offsetUnset($cnt);
  6.         $articoli->offsetSet(++$num, $a);
  7.     }
  8.     $cnt++;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement