StackOverflow Questions for Tag: associative-array

kmunky
kmunky

Reputation: 15583

Remove prefix from all strings in a flat array and use them as keys, then sort by keys

Score: 3

Views: 716

Answers: 1

Read More
Emilio Gort
Emilio Gort

Reputation: 3470

Convert an indexed array of associative arrays into a 3d associative array

Score: 1

Views: 150

Answers: 2

Read More
Mithun Satheesh
Mithun Satheesh

Reputation: 27835

Convert a string with two sets of delimiters into a flat associative array

Score: 30

Views: 46033

Answers: 5

Read More
Teresa
Teresa

Reputation: 127

Sort an array of single-element associative rows by row value

Score: 1

Views: 61

Answers: 2

Read More
Gianluca Ghettini
Gianluca Ghettini

Reputation: 11618

Sort a 2d array by a column without preserving the first level keys

Score: -1

Views: 72

Answers: 4

Read More
Antonios Lampros
Antonios Lampros

Reputation: 93

Use the first column of a 2d array as keys when transposing its data

Score: -1

Views: 51

Answers: 2

Read More
Prashant
Prashant

Reputation: 5461

Sort a flat array of numeric strings and preserve keys

Score: 37

Views: 58104

Answers: 4

Read More
dev
dev

Reputation: 990

Sort an associative array by values and preserve keys

Score: 9

Views: 16186

Answers: 1

Read More
stef
stef

Reputation: 27747

Custom sorting a flat array with uasort() returns 1

Score: 1

Views: 3678

Answers: 4

Read More
Bri Bri
Bri Bri

Reputation: 2210

What kind of implementation can I use for a static associative array on a vintage system with very limited resources?

Score: 3

Views: 176

Answers: 1

Read More
champ
champ

Reputation: 817

How to populate a flat associative array while looping query results?

Score: 0

Views: 474

Answers: 3

Read More
patrick
patrick

Reputation: 302

Custom sort an associative array by keys

Score: 1

Views: 868

Answers: 3

Read More
Shane McCarthy
Shane McCarthy

Reputation: 109

Convert every two values in a comma-separated string into associative array elements

Score: 0

Views: 128

Answers: 4

Read More
JasonDavis
JasonDavis

Reputation: 48923

How to make all array keys the same as their respective value?

Score: 1

Views: 151

Answers: 3

Read More
tnguyen444
tnguyen444

Reputation: 107

Parse an array of delimited values into a flat, associative array

Score: 2

Views: 89

Answers: 3

Read More
Benjamin Leinweber
Benjamin Leinweber

Reputation: 2944

How to combine associative arrays in bash?

Score: 15

Views: 6288

Answers: 8

Read More
Tony
Tony

Reputation: 697

Split qualifying colon-space separated strings in an array to form a new associative array

Score: 1

Views: 175

Answers: 3

Read More
oshirowanen
oshirowanen

Reputation: 15915

How to convert an associative array into a querystring?

Score: 0

Views: 93

Answers: 2

Read More
user648198
user648198

Reputation: 2020

Flatten a multidimensional associative array by one level

Score: 0

Views: 138

Answers: 5

Read More
user381800
user381800

Reputation:

Parse and sanitize a (URL) querystring into an associative array

Score: 2

Views: 105

Answers: 3

Read More
PreviousPage 1Next