php 判断数组中是否有重复的值

mac2022-06-30  86

$input = array(4, "4", "3", 4, 3, "3"); $result = array_unique($input); */ /** array(2) { [0] => int(4) [2] => string(1) "3" } **/

 

转载于:https://www.cnblogs.com/hgj123/p/4535267.html

最新回复(0)