SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply do this
$data += array($category => $question);
If your're running on php 5.4+
$data += [$category => $question];