I have a multidimensional array with 3 keys (\"length\", \"width\" and \"height). Each key is associated with an array of values:
$data = [ \"length\" =>
you can try this one to get the arrays like you said
$height = array(12,44); $width = array(20,50); $length = array(30,50); $new_array[0] = $height[0]; $new_array[1] = $width[0]; $new_array[2] = $length[0]; $new_array2 = $new_array[1]; print_r($new_array); echo ""; print_r($new_array2);