Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a = '{"am":"15h 06min","surf":"32h 25min","bhop":"40h 11min","jb":"11h 01min"}';
- $b = '{"am":"15h 06min","surf":"32h 25min","bhop":"40h 11min","jb":"11h 01min"}';
- $r = [];
- foreach(json_decode($a, true) as $key => $array){
- $r[$key] = array_merge(json_decode($b, true)[$key],$array);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement