Php shorthand for making an associative array whose keys and values are derived from the values of an array
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)); PHP Sandbox I do not like the idea (from readability point of view) of having to use array map twice on the…