php数组去除相同的数据
array:6[▼0=>{#596▼+"id":19+"order":1+"video":"data/1458646947.mp4"+"m3u8":"change/145...
array:6 [▼
0 => {#596 ▼
+"id": 19
+"order": 1
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby与其它语言的不同之处"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400176
}
1 => {#597 ▼
+"id": 21
+"order": 3
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的基本语法"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400204
}
2 => {#598 ▼
+"id": 19
+"order": 1
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby与其它语言的不同之处"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400176
}
3 => {#599 ▼
+"id": 20
+"order": 2
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的环境搭建"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400193
}
4 => {#600 ▼
+"id": 21
+"order": 3
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的基本语法"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400204
}
5 => {#601 ▼
+"id": 7
+"order": 2
+"video": "data/1459169959.mp4"
+"m3u8": "change/1459169959.mp4"
+"vi_describe": "unity3d第二节课"
+"co_describe": "手把手带你玩转unity3d"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459311257
}
]
求去掉相同的!!!!大神指导 展开
0 => {#596 ▼
+"id": 19
+"order": 1
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby与其它语言的不同之处"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400176
}
1 => {#597 ▼
+"id": 21
+"order": 3
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的基本语法"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400204
}
2 => {#598 ▼
+"id": 19
+"order": 1
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby与其它语言的不同之处"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400176
}
3 => {#599 ▼
+"id": 20
+"order": 2
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的环境搭建"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400193
}
4 => {#600 ▼
+"id": 21
+"order": 3
+"video": "data/1458646947.mp4"
+"m3u8": "change/1458646947.mp4"
+"vi_describe": "Ruby的基本语法"
+"co_describe": "Ruby基础课程"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459400204
}
5 => {#601 ▼
+"id": 7
+"order": 2
+"video": "data/1459169959.mp4"
+"m3u8": "change/1459169959.mp4"
+"vi_describe": "unity3d第二节课"
+"co_describe": "手把手带你玩转unity3d"
+"markdown": ""
+"task": ""
+"appendix": ""
+"addtime": 1459311257
}
]
求去掉相同的!!!!大神指导 展开
2个回答
2016-05-11 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
参考下面方法
数组的话直接 $result = a_array_unique($input)这个函数就行
数组的话直接 $result = a_array_unique($input)这个函数就行
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询