Top "Associative" questions

This tag is used mostly regarding associative arrays (but better use tag "associative-array" for that) and sometimes in the mathematic sense of tag "associativity", the associative property of binary operations.

Compare two Arrays Javascript - Associative

I have searched on here for a quality method to compare associative arrays in javascript. The only decent solution I …

javascript arrays comparison associative
PDO associative arrays - return associative

I have this code: $dbInstance = DB_Instance::getDBO(); $statement = $dbInstance->prepare("SELECT id, name FROM language ORDER BY id"); $…

arrays pdo associative
Sort an associative array in awk

I have an associative array in awk that gets populated like this: chr_count[$3]++ When I try to print my …

sorting arrays awk associative
Accessing associative arrays in PHP

I want to access the index 'memo' in the associative array in PHP below $variables["thelistitems"]; print_r($variables["thelistitems"]); …

php arrays associative
php associative array key order (not sort)

My array: $data = array('two' => 2, 'one' => 1, 'three' => 3); Now, with when I iterate the array, the first value …

php arrays associative
ASP print out array

I would like to print out the data, for debugging purpose. Data format would be like this cntryCode = resArray("COUNTRYCODE") …

arrays asp-classic debugging associative
How to pass an associative array as argument to a function in Bash?

How do you pass an associative array as an argument to a function? Is this possible in Bash? The code …

arrays bash associative-array associative
Adding multiple values to an associative array in PHP in one call

I am trying instantiate an associative array and then in a second call, assign it various other value sets on …

php arrays associative
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
JS associative object with duplicate names

ok, so I have an object like: var myobject = { "field_1": "lorem ipsum", "field_2": 1, "field_2": 2, "field_2": 6 }; as you see there are …

javascript object duplicates javascript-objects associative