PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $a = ['Ava', 'Emma', 'Olivia']; $b = ['Olivia', 'Sophia', 'Emma']; $values = []; foreach($a as $v) { $values[$v] = true; } foreach($b as $v) { $values[$v] = true; } foreach($values as $key=>$val) { $result[] = $key; } var_dump($result);
Show:  
Copy Clear