Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. log of $department:
  2.  
  3. {
  4.     name: "Logistics"
  5.     description: "they deal with logistics
  6. }
  7.  
  8. log of $department->employees:
  9.  
  10. [
  11.     {
  12.         name: "bob"
  13.         age: 22
  14.     },
  15.     {
  16.         ...
  17.     }
  18. ]
  19.  
  20. I now want to have a department object like this:
  21.  
  22. {
  23.     name: "Logistics",
  24.     description: "they deal with logistics,
  25.     employees: [
  26.         {
  27.             name: "bob"
  28.             age: 22
  29.         },
  30.         {
  31.             ...
  32.         }
  33.     ]
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement