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.

Hash Table/Associative Array in VBA

I can't seem to find the documentation explaining how to create a hash table or associative array in VBA. Is …

vba hash hashtable associative-array
php: how to get associative array key from numeric index?

If I have: $array = array( 'one' =>'value', 'two' => 'value2' ); how do I get the string one back …

php key associative-array
Is there a way to create key-value pairs in Bash script?

I am trying to create a dictionary of key value pair using Bash script. I am trying using this logic: …

bash shell associative-array
JavaScript associative array to JSON

How can I convert a JavaScript associative array into JSON? I have tried the following: var AssocArray = new Array(); AssocArray["…

javascript json associative-array
Using an integer as a key in an associative array in JavaScript

When I create a new JavaScript array, and use an integer as a key, each element of that array up …

javascript associative-array
Convert an associative array to a simple array of its values in php

I would like to convert the array: Array ( [category] => category [post_tag] => post_tag [nav_menu] => nav_…

php arrays associative-array
How to sort a date array in PHP

I have an array in this format: Array ( [0] => Array ( [28th February, 2009] => 'bla' ) [1] => Array ( [19th March, 2009] => 'bla' ) [2] =&…

php arrays arraylist associative-array sorting
array_push for associative arrays

I'm trying to extend an assoc array like this, but PHP doesn't like it. I receive this message: Warning: array_…

php arrays associative-array array-push
variable as index in an associative array - Javascript

I'm trying to create an associative array, create an empty array, and then add a (indexName -> value) pair: …

javascript associative-array
Return first key of associative array in PHP

I'm trying to obtain the first key of an associative array, without creating a temporary variable via array_keys() or …

php arrays key associative-array