Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $a = '{"am":"15h 06min","surf":"32h 25min","bhop":"40h 11min","jb":"11h 01min"}';
  2. $b = '{"am":"15h 06min","surf":"32h 25min","bhop":"40h 11min","jb":"11h 01min"}';
  3. $r = [];
  4. foreach(json_decode($a, true) as $key => $array){
  5. $r[$key] = array_merge(json_decode($b, true)[$key],$array);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement