- var_dump: documentation ( source)
- parse_str: documentation ( source)
- array_merge: documentation ( source)
<?php
parse_str('price-entries[-1][price-entry-meal-id-custom-field]=538&price-entries[-1][price-entry-number-of-adults-custom-field]=1&price-entries[-1][price-entry-number-of-children-custom-field]=1&price-entries[-1][price-entry-child-max-age-custom-field]=&price-entries[-1][price-entry-season-id-custom-field]=534&price-entries[-1][price-entry-price-custom-field]=&price-entries[-1][price-entry-hotel-id-custom-field]=52670&price-entries[-1][price-entry-room-id-custom-field]=52692', $x);
parse_str('price-entries[-2][price-entry-meal-id-custom-field]=538&price-entries[-2][price-entry-number-of-adults-custom-field]=2&price-entries[-2][price-entry-number-of-children-custom-field]=&price-entries[-2][price-entry-child-max-age-custom-field]=&price-entries[-2][price-entry-season-id-custom-field]=534&price-entries[-2][price-entry-price-custom-field]=&price-entries[-2][price-entry-hotel-id-custom-field]=52670&price-entries[-2][price-entry-room-id-custom-field]=52692', $y);
$z= array_merge($x, $y);
var_dump($x, $y);