Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $arr1 = [
- [
- 'id' => 1,
- 'name' => 'John',
- 'email' => 'j@mail.com'
- ],
- [
- 'id' => 2,
- 'name' => 'Jane',
- 'email' => 'jane@mail.com'
- ]
- ];
- $arr2 = [
- [
- 'id' => 1,
- 'email' => 'john@yahoo.com'
- ],
- [
- 'id' => 2,
- 'email' => 'jane@yahoo.com'
- ],
- [
- 'id' => 2,
- 'email' => 'jane.doe@hotmail.com'
- ],
- ];
- $arr3 = [
- [
- 'id' => 1,
- 'name' => 'John',
- 'email' => ['j@mail.com', 'john@yahoo.com']
- ],
- [
- 'id' => 2,
- 'name' => 'Jane',
- 'email' => ['jane@mail.com', 'jane@yahoo.com', 'jane.doe@hotmail.com']
- ]
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement