Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

collection pluck remove duplicates



$userIds = collect($participants['items'])->pluck('user_id')->unique()->toArray();


//$unique = $collection->unique();


 
PREVIOUS NEXT
Tagged: #collection #pluck #remove #duplicates
ADD COMMENT
Topic
Name
2+3 =