$arr = [
'color' => [ 'red', 'blue' ],
'size' => [ 23, 55 ],
'price' => [ 100, 200 ]
]
[
[ 'red', 23, 100 ],
[ 'blue', 55, 200 ]
]
$newArr = [];
for ($i = 0; $i < count($arr['color']; $i++) {
array_push($newArr, [ $arr['color'][$i], $arr['size'][$i], $arr['price'][$i] ] );
}
<?php
$a = [1, 2, 3, 4, 5];
$b = ['one', 'two', 'three', 'four', 'five'];
$c = ['uno', 'dos', 'tres', 'cuatro', 'cinco'];
$d = array_map(null, $a, $b, $c);
print_r($d);
?>
Array
(
[0] => Array
(
[0] => 1
[1] => one
[2] => uno
)
[1] => Array
(
[0] => 2
[1] => two
[2] => dos
)
[2] => Array
(
[0] => 3
[1] => three
[2] => tres
)
[3] => Array
(
[0] => 4
[1] => four
[2] => cuatro
)
[4] => Array
(
[0] => 5
[1] => five
[2] => cinco
)
)