J'ai un format de tableau en entrée et je le convertis en tableau multidimensionnel.
Array
(
[0] => Array
(
[third_party_id] => 2
[third_party_name] => aardvarkg
[parameter_id] => 221
[parameter_name] => new2
[param_value] => 1
[sub_param_name] => new2_new2
[sub_param_value] => 1_1
[sub_bidder_id] => 72
)
[1] => Array
(
[third_party_id] => 2
[third_party_name] => aardvarkg
[parameter_id] => 222
[parameter_name] => new
[param_value] => 1
[sub_param_name] => new
[sub_param_value] => 1
[sub_bidder_id] => 74
)
[2] => Array
(
[third_party_id] => 3
[third_party_name] => aard
[parameter_id] => 221
[parameter_name] => new2
[param_value] => 3
[sub_param_name] => new2
[sub_param_value] => th
[sub_bidder_id] => 78
)
)
J'ai besoin d'une sortie sous forme de tableau multidimensionnel, avec un tableau parent et un tableau enfant.
[0] => Array
(
[third_party_id] => 2
[third_party_name] => aardvarkg
[param] =>[parameter_id] => 221
[parameter_name] => new2
[param_value] => 1
[subparam] => [sub_param_name] => new2_new2
[sub_param_value] => 1_1
[sub_bidder_id] => 72
)
J'ai besoin de la réponse à la sortie du format array ci-dessus toute aide sera appréciée.