Advertisement
Guest User

Untitled

a guest
Feb 28th, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $arr1 = [
  2. [
  3. 'id' => 1,
  4. 'name' => 'John',
  5. 'email' => 'j@mail.com'
  6. ],
  7. [
  8. 'id' => 2,
  9. 'name' => 'Jane',
  10. 'email' => 'jane@mail.com'
  11. ]
  12. ];
  13.  
  14. $arr2 = [
  15. [
  16. 'id' => 1,
  17. 'email' => 'john@yahoo.com'
  18. ],
  19. [
  20. 'id' => 2,
  21. 'email' => 'jane@yahoo.com'
  22. ],
  23. [
  24. 'id' => 2,
  25. 'email' => 'jane.doe@hotmail.com'
  26. ],
  27. ];
  28.  
  29. $arr3 = [
  30. [
  31. 'id' => 1,
  32. 'name' => 'John',
  33. 'email' => ['j@mail.com', 'john@yahoo.com']
  34. ],
  35. [
  36. 'id' => 2,
  37. 'name' => 'Jane',
  38. 'email' => ['jane@mail.com', 'jane@yahoo.com', 'jane.doe@hotmail.com']
  39. ]
  40. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement