I am trying to define a 2d array in php. I have some concept code so you can see the situation:
class Testing {
protected $requiredFieldsByReferenceType = array(
['Book']['volume'] => true,
['Book']['source'] => true,
['Book Section']['volume'] => true,
['Book Section']['source'] => true,
['Chart or Table']['volume'] => true,
['Chart or Table']['source'] => true
);
print_r($requiredFieldsByReferenceType);
}//End Testing
The error that is thrown:
Parse error: syntax error, unexpected '[', expecting ')'