create and append associateive array 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);