SyntaxFix
Write A Post
Hire A Developer
Questions
To push a "key" and "value" to an existing array, you can use += shortcut operator.
"key"
"value"
+=
See this very simple example:
$GET = []; $GET += ['one' => 1];
The result of print_r($GET) will be:
print_r($GET)
Array ( [one] => 1 )
Hope this helps.