The code of life PHP compares whether two arrays are the same January 19, 2024 by Saanvi Hari No Comments $res_33 = array_merge($_res2,$dk_list); $dk_list = array_merge($_res2,$dk_list); If (count($res_33) == count(array_unique($res_33))) {Copy the code For more exciting articles, please follow Wang mingchang’s blog