Guest User

Untitled

a guest
Oct 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $array = array();
  2. $i = 0;
  3. foreach ($restaurants as $restaurant) {
  4. $array[$i] = new \stdClass();
  5. $array[$i]->y = $restaurant->id;
  6. $array[$i]->item1 = $restaurant->email;
  7. $i++;
  8. }
Add Comment
Please, Sign In to add comment