php array merge skip diplicate
snippet in php

php array merge skip diplicate

user5274

You can use the PHP array_unique() function and PHP array_merge() function together to merge two arrays into one array without duplicate values in PHP.