Top "Array-unique" questions

PHP's array_unique() function accepts a single array and returns a new array with all duplicate values removed

Remove duplicate items from an array

I use the line of code below to loop through a table in my database: $items_thread = $connection -> …

php arrays duplicates array-unique
array_unique and then renumbering keys

Possible Duplicate: Re-index numeric array keys I have an array as follows Array ( [0] => 15/11/2012 - 18/11/2012 [1] => 15/11/2012 - 18/11/2012 [2] => 15/11/2012 - 18/11/2012 [3] => 15/11/2012 …

php array-unique
Select only unique array values from this array

I have the following variable $rows: Array ( [0] => stdClass Object ( [product_sku] => PCH20 ) [1] => stdClass Object ( [product_sku] => …

php arrays array-unique
Array_unique on a laravel eloquent collection

Not sure if this is possible but im trying to run array_unique over a collection of items i have, …

php laravel laravel-4 eloquent array-unique
array_merge & array_unique

Is there an array function in PHP that somehow does array_merge, comparing the values, ignoring the keys? I think …

php arrays array-merge array-unique
PHP Array unique values

I have an array like this Array ( [0] => Array ( [id] => BA [name] => British Airways ) [1] => Array ( [id] => …

php arrays array-unique
How do I use array_unique on an array of arrays?

I have an array Array( [0] => Array ( [0] => 33 [user_id] => 33 [1] => 3 [frame_id] => 3 ) [1] => Array ( [0] => 33 [user_id] =&…

php arrays array-unique
How to remove duplicate values from array in foreach loop?

I want to remove duplicate values from array. I know to use array_unique(array) function but faced problem in …

php arrays foreach duplicates array-unique
How to remove duplicate words from string using php?

Below is the variable I have, $string = 'AAA,BBB,aAA,BbB,AAA,BbB'; I need the unique string result below, $…

php string array-unique
array_unique for arrays inside array

I need a function like array_unique for arrays inside array. The Case - should be equal, but output "not …

php multidimensional-array associative-array array-unique