Use array_unique() for a one-dimensional array. From the PHP manual: Takes an input array and returns a new array without duplicate values.
確定! 回上一頁