📜  php 数组唯一数组到字符串的转换 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:30.425000             🧑  作者: Mango

代码示例1
//if you have this error it's because array_unique() compare content of array
//as strings, but if your array contains other array the function convert array
//to string and throw an error. To avoid this error use this :

$newArray = array_unique($array, SORT_REGULAR);