How can I combine both of these arrays and if there is duplicates of an array have only one represented using PHP.
Array
(
[0] => 18
[1] => 20
[2] => 28
[3] => 29
)
Array
(
[0] => 1
[1] => 8
[2] => 19
[3] => 22
[4] => 25
[5] => 28
[6] => 30
)