I want to manage my array but I haven't got any idea how I should to do it.
When I add a product I have many attributes that I can select like color, size. Sometimes I have more than 2 attributes.
$table = array(
    'color' => array('1', '2'),
    'size' => array('37', '38'),
    'other' => array('a', 'b'),
    ...
);
What I am looking for, is to have this result:
$table = array(
    '0' => array('1', '37','a'),
    '1' => array('1', '37','b'),
    '2' => array('1', '38','a'),
    '3' => array('1', '38','b'),
    '4' => array('2', '37','a'),
    '5' => array('2', '37','b'),
    '6' => array('2', '38','a'),
    '7' => array('2', '38','b'),
);