Merge multiple arrays to form a new array, what php function? -


$image = array(               'src' => array(                             0 => 'zero',                             1 => 'one',                             2 => 'two',                        ),                'width' => array(                                 0 => 'zero',                                 1 => 'one',                                 2 => 'two',                           ),                'height' => array(                                 0 => 'zero',                                 1 => 'one',                                 2 => 'two',                            ),          ); 

i trying merge these array elements form following array.

$image = array(               array(                    'src' => 'zero', 'width' => 'zero', 'height' => 'zero'               ),               array(                    'src' => 'one', 'width' => 'one', 'height' => 'one'               ),               array(                    'src' => 'two', 'width' => 'two', 'height' => 'two'               ), ); 

can suggest suitable php function? i'm not trying use foreach loop here.

start array_merge_recursive() , go there.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -