Top "Associative-array" questions

An associative array is an abstract data type composed of a collection of unique keys mapped to a collection of values.

array_reduce() can't work as associative-array "reducer" for PHP?

I have an associative array $assoc, and need to reduce to it to a string, in this context $OUT = "<…

php mapreduce associative-array
How to determine if an associative array has a key?

In ActionScript 3, is there any convenient way of determining if an associative array (dictionary) has a particular key? I need …

flash actionscript-3 arrays associative-array key
Remove all elements of an array with non-numeric keys

I have an array that looks something like this: Array ( [0] => apple ["b"] => banana [3] => cow ["wrench"] => duck ) …

php arrays associative-array
Using an associative array as data for D3

I have a very simple D3 example that first reads data into an associative array, then displays it in a …

javascript d3.js associative-array
Automatically sorted by values map in Java

I need to have an automatically sorted-by-values map in Java - so that It keeps being sorted at any time …

java data-structures collections associative-array sorted
How to join an associative array into a string

I am trying to do this now and I wonder if there is a "the most used" method to join …

javascript string join associative-array
Check if associative array contains value, and retrieve key / position in array

I'm struggling to explain what I want to do here so apologies if I confuse you.. I'm just as confused …

php arrays associative-array associative
Difference between array_filter() and array_map()?

I looked into the similar topics in web as well stack overflow, but could get this one into my head …

php arrays associative-array
Finding cartesian product with PHP associative arrays

Say that I have an array like the following: Array ( [arm] => Array ( [0] => A [1] => B [2] => C ) [gender] =&…

php algorithm associative-array cartesian-product
Sum of a row of an associative array using PHP?

Is there a php function that returns the sum of a row of an associative array? If not should I …

php arrays function sum associative-array