Find and replace duplicates in Array

后端 未结 4 1083
小蘑菇
小蘑菇 2021-01-13 20:14

I need to make app with will fill array with some random values, but if in array are duplicates my app not working correctly. So I need to write script code which will find

4条回答
  •  醉梦人生
    2021-01-13 20:25

    Use the function array_unique()

    See more info at http://php.net/manual/en/function.array-unique.php

提交回复
热议问题