Hello Tell me how to create from 2 existing arrays with identical structure one array with nested arrays, so that later it would be possible to decompose it again into 2 separate ones? Thank.

Closed due to the fact that the essence of the issue is not clear to the participants of D-side , VenZell , Grundy , zRrr , katso 15 May '16 at 10:30 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Example before and after add. - E_p

1 answer 1

$array_A1 = [1,2,3]; $array_A2 = [1,2,3]; // Объединяем $merge = [$array_A1, $array_A2]; // Разделяем list($array_B1, $array_B2) = $merge;