<?php function a(array ...$a) { return array_merge($a, $a); } $a = [1, 2, 3]; $b = 4; $c = a($a, $b); // $c = [1, 2, 3, 4] var_dump($c);
You have javascript disabled. You will not be able to edit any code.