Fusion de tableaux en PHP

array_mergearray_combine
Задание 1

Étant donné les tableaux :

php<?php
  $arr1 = [1, 2, 3];
  $arr2 = ['a', 'b', 'c'];
?>

Créez-en le tableau suivant :

php<?php
  [1, 2, 3, 'a', 'b', 'c']
?>
Задание 2

Étant donné les tableaux :

php<?php
  $arr1 = ['a', 'b', 'c'];
  $arr2 = [1, 2, 3];
?>

Créez à partir d'eux le tableau suivant :

php<?php
  ['a' => 1, 'b' => 2, 'c' => 3]
?>