Php – Set multiple variables to the same if they are not set
Is there a shorthand for the following: $a ??= []; # Note: $a ??= [] is equivalent to $a = isset($a) ? $a : [] $b ??= []; #... $z ??= []; One possible solution is: foreach (array("a", "b", ...,…