Skip to main content
4 votes
4 answers
106 views

How can I map an unknown value alongside other known values in bash using an associative array, so that: #!/bin/bash array=("foo" "foo" "bar" "something else" &...
Caio's user avatar
  • 75
-1 votes
2 answers
215 views

How can I reference an associative array and reassign its content from serialized string? (The eval requirement is now spelled out explicitly in the title, but this is natural when it comes to ...
Albert Camu's user avatar
1 vote
1 answer
82 views

I am trying to display data from multiple MySQL tables in individual text fields in an HTML form using PHP. Here are three sample tables from a database, followed by code that I am using to select ...
Dave's user avatar
  • 11
3 votes
2 answers
199 views

I'm working on a project written in C that's going to be deployed on vintage systems with very limited resources. The target system has at minimum a 16 MHz Motorola 68030 processor with a 256 byte L1 ...
Bri Bri's user avatar
  • 1,992
-4 votes
1 answer
138 views

I am trying to build an associative multidimensional array like this: array( [0] => Array( Parent => Mr Smith, Children => array( Firstmane => Bob, ...
SteveAsh's user avatar
0 votes
2 answers
79 views

The following script works as expected for me on FreeBSD using bash-5: function a { declare -gA Seen if [[ -v Seen[$1] ]] then echo "Saw $1 already" return ...
Mikhail T.'s user avatar
  • 4,256
1 vote
3 answers
117 views

The output from the following code does not behave how I think it should. It appears that making changes to the string array returned by testAA.require() does not reflect in the associative array. I ...
Element Green's user avatar
1 vote
4 answers
113 views

Is there a shorthand for the following code: $result = array_combine( array_map(fn($elem) => "key_$elem", $array), array_map(fn($elem) => "value_$elem", $array) ); ...
plsssineedheeeelp's user avatar

15 30 50 per page
1
2 3 4 5
222