PHP - Merging two arrays into one array (also Remove Duplicates) - Stack Overflow

PHOTO EMBED

Tue Sep 14 2021 20:54:34 GMT+0000 (UTC)

Saved by @mvieira #php

array_unique(array_merge($array1,$array2), SORT_REGULAR);
content_copyCOPY

https://stackoverflow.com/questions/13469803/php-merging-two-arrays-into-one-array-also-remove-duplicates