Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. $owners = array();
  2.  
  3. foreach ($foo as $bar) {
  4.  
  5.     if (!isset($owners[$bar->owner])) {
  6.         $owners[$bar->owner] = true;
  7.  
  8.         // ....
  9.  
  10.     }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement