How to find unique values in array

后端 未结 4 1528
小鲜肉
小鲜肉 2021-01-24 06:41

Here i want to find unique values,so i am writing code like this but i can\'t get answer,for me don\'t want to array format.i want only string

<         


        
4条回答
  •  天涯浪人
    2021-01-24 07:18

    ";
      arr_count_val($arr1); // will print array with duplicate values
    
      function arr_unique($arr) {
        sort($arr);
        $curr = $arr[0];
        $uni_arr[] = $arr[0];
        for($i=0; $i "."$count"."
    "; $count=0; } } ?>

提交回复
热议问题