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.

Extract subset of key-value pairs from Python dictionary object?

I have a big dictionary object that has several key value pairs (about 16), but I am only interested in 3 of …

python dictionary associative-array
Multi-dimensional associative arrays in JavaScript

There is the following query results: (key1 and key2 could be any text) id key1 key2 value 1 fred apple 2 2 mary …

javascript multidimensional-array associative-array
How to iterate over associative arrays in Bash

Based on an associative array in a Bash script, I need to iterate over it to get the key and …

bash associative-array key-value bash4
Associative arrays in Shell scripts

We required a script that simulates Associative arrays or Map like data structure for Shell Scripting, any body?

bash shell hashtable associative-array
Fastest way to implode an associative array with keys

I'm looking for a fast way to turn an associative array in to a string. Typical structure would be like …

php arrays query-string associative-array implode
How to update specific key's value in an associative array in PHP?

I've a following associative array named $data Array ( [0] => Array ( [transaction_user_id] => 359691e27b23f8ef3f8e1…

php arrays associative-array
Are there dictionaries in php?

For example: $names = {[bob:27, billy:43, sam:76]}; and then be able to reference it like this: $names[bob]

php dictionary associative-array terminology
PHP combine two associative arrays into one array

$array1 = array("$name1" => "$id1"); $array2 = array("$name2" => "$id2", "$name3" => "$id3"); I need a new array combining all …

php arrays multidimensional-array associative-array
How to concatenate properties from multiple JavaScript objects

I am looking for the best way to "add" multiple JavaScript objects (associative arrays). For example, given: a = { "one" : 1, "two" : 2 }; …

javascript object dictionary associative-array
How to insert a new key value pair in array in php?

I've an array as follows named $test_package_data. For the reference I'm printing first two elements of it: Array ( [0] =&…

php arrays multidimensional-array associative-array