I come from a javascript background, I want to do something similar to this.
$questions = [
{
"title" => "this is the title",
"description" => "this is the desctiption"
},
{
"title" => "this is the title2",
"description" => "this is the desctiption2"
}
];
How do I create an array of objects in PHP?