0

a have array in php like that :

array1 = [   '1',   '2',   '3'          ]; </pre></div><!-- /wp:codemirror-blocks/code-block --> <!-- wp:paragraph -->and i have another array :<!-- /wp:paragraph --> <!-- wp:codemirror-blocks/code-block {"showPanel":false,"languageLabel":"no","mode":"clike","mime":"text\/x-c++src"} --> 			<div class="wp-block-codemirror-blocks-code-block code-block"><pre>array2 = [
   [
     'a',
     'b',
     'c',
   ],
   [
    'd',
    'e',
    'f',
   ]
];

i need this result :

$array1_merge_array2 = [
  [
    '1' => ['a'],
    '2'  => ['b'],
    '3'  => ['c']
  ],
  [
    '1 ' => ['d'],
    '2'  => ['e'],
    '3'  => ['f']
  ]
]

please can you help me ,i wait any answer

Anonymous Asked question May 14, 2021