PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php function union($first, ...$rest) { $result = array_merge($first, ...$rest); $result = array_unique($result); return [...$result]; } var_dump(union([3, 2], [2, 2, 1]));
Show:  
Copy Clear