<?php $s_one = '1'; $i_two = '2'; $a_three = array(3 => '3'); $add = function(...$data){ foreach($data as $key => $value) { yield $key => $value; } }; var_dump($add($s_one, $i_two, $a_three));
You have javascript disabled. You will not be able to edit any code.