我有这个数组
Array
(
[0] => posts Object
(
[title] => test1
[dbh] => DataBase Object
(
[dbh] => PDO Object ( )
)
)
[1] => posts Object
(
[title] => test1
[dbh] => DataBase Object
(
[dbh] => PDO Object ( )
)
)
[2] => posts Object
(
[title] => test2
[dbh] => DataBase Object
(
[dbh] => PDO Object ( )
)
)
)
我不能使用array_unique(),因为对象不能转换为字符串