$tj_recommend = [
['id' => 1, 'files_id' => 1],
['id' => 2, 'files_id' => 3],
['id' => 3, 'files_id' => 3],
['id' => 4, 'files_id' => 2],
['id' => 5, 'files_id' => 5],
['id' => 6, 'files_id' => 1],
['id' => 7, 'files_id' => 7],
['id' => 8, 'files_id' => 8],
['id' => 9, 'files_id' => 1]
];
$arr = [];
foreach($tj_recommend as $item){
if(!in_array($item['files_id'], array_column($arr, 'files_id'))){
$arr[] = $item;
}
}
print_r($arr);exit;
Hello, you used to write great, but the last few posts have been kinda boring… I miss your tremendous writings. Past few posts are just a bit out of track! come on!
Some really wonderful info , Sword lily I observed this.
I’d have to examine with you here. Which is not one thing I usually do! I take pleasure in reading a post that may make folks think. Additionally, thanks for permitting me to comment!
Usually I don’t read article on blogs, but I would like to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, quite nice article.
I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a nice blog like this one these days..