Hello,
I have an array as below
I want to split this part of the key [ 1-18-16-15-1-1] and re-sequence
How can I create an array by taking the 1st element, the 2nd element and the 5th element as in the example below
array(
"1"=>array(
"18"=>1,
"13"=>2,
"7"=>1,
"3"=>2,
"1"=>1
),
"2"=>array(
"18"=>1,
"13"=>2,
"7"=>1,
"3"=>2,
"1"=>1
),
"3"=>array(
"18"=>1,
"13"=>2,
"7"=>1,
"3"=>2,
"1"=>1
)
);
I just couldn’t do it and I’m confused
I would be glad if you can help
Thank you
Array
(
[1-18-16-15-1-1] => Array
(
[0] => 105
)
[1-13-28-25-1-2] => Array
(
[0] => 106
[1] => 103
)
[1-7-16-13-1-1] => Array
(
[0] => 105
)
[1-3-28-27-1-2] => Array
(
[0] => 106
[1] => 103
)
[1-1-12-10-1-1] => Array
(
[0] => 104
)
[2-18-16-15-1-1] => Array
(
[0] => 105
)
[2-13-28-25-1-2] => Array
(
[0] => 106
[1] => 103
)
[2-7-16-13-1-1] => Array
(
[0] => 105
)
[2-3-28-27-1-2] => Array
(
[0] => 106
[1] => 103
)
[2-1-12-10-1-1] => Array
(
[0] => 104
)
[3-18-16-15-1-1] => Array
(
[0] => 105
)
[3-13-28-25-1-2] => Array
(
[0] => 106
[1] => 103
)
[3-7-16-13-1-1] => Array