Lookup expressions: removal of restrictions
The lookup operator "?" (in both its unary and binary forms) can now be followed by:
- A string literal, for example
$person?'date of birth'
- A variable reference, for example
$array?$index
The effect is the same as if the string literal or variable were written in parentheses.