php add new property to associative 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);