Bidirectional conversion between the old and new array syntaxes in PHP