Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $owners = array();
- foreach ($foo as $bar) {
- if (!isset($owners[$bar->owner])) {
- $owners[$bar->owner] = true;
- // ....
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement