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.

How can I use array_map with keys and values, but return an array with the same indexes (not int)?

I have an array such as ['id' => 1, 'name' => 'Fred']. I want to call array_map on this array …

php arrays associative-array array-map
Is there a way to find out how "deep" a PHP array is?

A PHP array can have arrays for its elements. And those arrays can have arrays and so on and so …

php arrays associative-array
Multidimensional associative arrays in Bash

I'm trying to create a multidimensional associative array but need some help. I have reviewed the page suggested in this …

bash hash multidimensional-array hashtable associative-array
Change an associative array into an indexed array / get an Zend_Table_Row_Abstract as non-associative

Hi out there in Stackland. I was wondering if there was either a function or an easy way to change …

php zend-framework associative-array associative
Redis how to store associative array? Set or Hash or List?

I'm a bit confused with all the available storing options of Redis. I want to do something simple and I …

redis associative-array phpredis
Foreach loop in jade (node.js template engine)

Ok, I am getting an associative array from node server and trying to render it in Jade. I obviously need …

node.js foreach associative-array pug
Associative arrays: error "declare: -A: invalid option"

I've written a script that uses associative arrays in bash (v 4). It works fine on my local machine which is …

bash associative-array
Awk array iteration for multi-dimensional arrays

Awk offers associative indexing for array processing. Elements of 1 dimensional array can be iterated: e.g. for(index in arr1) …

arrays awk associative-array
Delete vs splice on associative array

If I have a JS associative array which is from what I gather is really an object, and I wish …

javascript arrays associative-array
PHP - associative array as an object

Possible Duplicate: Convert Array to Object PHP I'm creating a simple PHP application and I would like to use YAML …

php class object yaml associative-array