79338902

Date: 2025-01-08 11:19:07
Score: 0.5
Natty:
Report link

Bit late to this question but for those with PHP < 7.4:

If you provide unique keys for each of the initial separate array elements, then array addition works.

Example:

const A = ["a", "aa", "aaa"];
const B = [10 => "b", 11 => "bb"];
const C = [20 => "c"];
const D = A + B + C;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jpkrc