I have this array with certain brand_ids, within these brands I have an array of dates in which a sale occured but these are based on the products in ...
I have this array with certain brand_ids, within these brands I have an array of dates in which a sale occured but these are based on the products in ...
I have been racking my head trying to think if there is a simpler method to grabbing the unique objects out of an array, but can't find any documentat ...
Using PHP, I have an array like this: Array 1 Then, I have a second array like this: Array 2 My goal is to get all hash from array one and add ...
I am getting duplicate data in an array and that data is storing in my DB. I am using array_unique to refine the duplicate data but it is not working. ...
my code is : why out put is stil duplicated ? out put is: not diffrent between using array_unique and not use it . ...
I have an object which contains 3 arrays, any of which may be empty, it is feasible all three can be empty, so I need to handle that requirement too. ...
I am trying to create a method called filer_out! that takes in an array and a proc, and returns the same array but with every element that returns tru ...
I have 2 arrays and need to find the unique values in the second array that are not in the first array and output those to a third array. Array 1 ...
I want to find duplicates in a multidimensional array and then echo out which one who has duplicates and which not. I've tried this code. Then I ge ...
I've stumbled upon something weird and I don't understand why it works that way. I have an array of numbers, they are all unique: If I do print_ ...
I have following array result: Example: The First and Third league names are similar. The above code output looks like this: League Name: Wor ...
I have: But I want: I've tried: When I var_dump the makeArrays function though, the country ID keys are not populated with an array of postal ...
I have a PHP code which runs on PHP7 but not in PHP 5, which PHP version in my server, that is my code: I get what I expected in PHP7 but I get an ...
Need to merge the Multidimensional array into single array, thereby, eleminating the duplicate values taking key as username and values as their user ...
Why foreach loop printing only the first value from the array? ...
I have a multidimensional array, consisting of products. Each sub-array has a product type. The productType is is in an array inside the Product array ...
I'm using print_r(array_unique($array, SORT_REGULAR)); on the array below but it does not work. I'm trying to filter out the redundant data. Notice ...
I can't manage to sort an array alfabetically. It's an array with cities that I get from an external XML. The XML looks like this, and it's the node ...
I was following this but it still doesn't work for me: How to remove duplicate data of JSON object using PHP In my PHP file I have 3 JSON arrays: ...
I have a multi-dimensional array that contains an associative array in every row. How to make it unique based on specified array key? I already trie ...