assoc array add element in order php code example
Example: php add to associative array
// for php 5.4+
$data += [$key => $value];
// for php 5.4-
$data += array($key => $value);
// for php 5.4+
$data += [$key => $value];
// for php 5.4-
$data += array($key => $value);