Ich habe ein Array wie https://3v4l.org/VrIDeaus einem Array
$arr = array(
'slidelink' => 'presentation.pptx',
'productid' => array(1,3),
'order' => 2,
'class_id' => array(1,2),
'currency_id' => array(1,2),
'presentation_type' => 1,
'distribution' => 0,
);
Und ich möchte alle möglichen Ausgänge davon zu einem neuen Array zu erzeugen, so dass in diesem Fall 8 Zeilen wie:
$new_arr = array (
0 => array(presentation.pptx, 1, 2, 1, 1, 1, 0),
1 => array(presentation.pptx, 1, 2, 1, 2, 1, 0),
2 => array(presentation.pptx, 1, 2, 2, 1, 1, 0),
3 => array(presentation.pptx, 1, 2, 2, 2, 1, 0),
4 => array(presentation.pptx, 3, 2, 1, 1, 1, 0),
5 => array(presentation.pptx, 3, 2, 1, 2, 1, 0),
6 => array(presentation.pptx, 3, 2, 2, 1, 1, 0),
7 => array(presentation.pptx, 3, 2, 2, 2, 1, 0)
);
Wie kann ich das tun?
Danke!
Was haben Sie bisher versucht? – Dekel