Category "associative-array"

In Azure, can I create a mapping at runtime?

I'm trying to loop over an array of group names and I want to dynamically get the IDs of those groups so that I can assign roles to them. I just learned I can s

Convert every two values of an associative array into key-value pairs

I need to convert an associative array into a new associative array where the original keys are ignored and every two consecutive values become new key-value pa

Merge column values from two arrays to form an indexed array of associative arrays

I have two arrays: $a = ['0' => 1, '1' => 2, '2' => 3] $b = ['0' => 4, '1' => 5, '2' => 6] I want to create a new array like this: [ ['

Using Associative arrays

I'm trying to access a position of a associative array which is inside of another array. Here is my array: Array ( [order_data] => stdClass Object