Helle。我正在使用
$manual['pages'] = array_map("unserialize", array_unique(array_map("serialize", $manual['pages'])));
它在使独一无二后给我输出
{
"items": [
{
"manuals": [],
"versions": [],
"pages": {
"0": {
"id": "25",
"short_title": "Windows 7 Software",
"full_title": "Windows 7 Software",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"1": {
"id": "26",
"short_title": "Software: The New Paint",
"full_title": "Software: The New Paint",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"2": {
"id": "27",
"short_title": "Software: The New Wordpad",
"full_title": "Software: The New Wordpad",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"3": {
"id": "28",
"short_title": "Software: The New Calculator",
"full_title": "Software: The New Calculator",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"4": {
"id": "29",
"short_title": "Software: The New Word",
"full_title": "Software: The New Word",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"5": {
"id": "30",
"short_title": "Software: Windows Media Player 12",
"full_title": "Software: Windows Media Player 12",
"image": "http://marksmith.biz/media/7.jpg",
"tags": [
{
"name": "Software"
}
]
},
"7": {
"id": "11",
"short_title": "Software Compatibility",
"full_title": "Software Compatibility",
"image": "http://marksmith.biz/media/7.jpg",
"tags": []
}
},
"faqs": []
}
],
"success": "true"
}
现在我的问题是,您可以看到页面数组。你可以找到0,1,2,3等数字。我想从数组中删除这些数字。
任何帮助都将不胜感激!
array_values()
,它就会从输出中删除!