Here\'s what I am trying to accomplish:
function foo($args) { switch($args[\'type\']) { case \'bar\': bar($args[\'data\']); // do something break;
No. Alternative syntaxes for creating arrays have been proposed several times (the link lists 5 separate threads in the dev mailing list), but they were rejected.