In Salesforce Apex, I'm trying to create a multi-dimensional array that I can later serialize into JSON.
In PHP I would do it as such:
$form['fields'][$element[1]][$element[2]] = $data;
But I can't seem to find a way to easily do this with Apex...can anyone guide me in the right direction?