SyntaxFix
Write A Post
Hire A Developer
Questions
If you are creating new array then try this :
$arr = ['key' => 'value'];
And if array is already created then try this :
$arr['key'] = 'value';