How to create an array of the values of other arrays?

Hi. Help to come up with an implementation for array creation.
Need values from some arrays to collect the other. How to implement it are shown in the figure below. Thank you.

June 14th 19 at 18:02
1 answer
June 14th 19 at 18:04
php 5.6+
compose_arrays function(...$arrays){
 foreach($arrays as $array){
 for($i = 0; $i < count($array); $i++){
 $array_out[$i][] = $array[$i];
 return $array_out;

Finished and can be used.

Find more questions by tags ArraysPHP