Slide 21
Slide 21 text
Uniform Variable Syntax
Syntax Old Interpretation New Interpretation
$$var[‘key1’][‘key2’] ${$var[‘key1’][‘key2’]} ($$var)[‘key1’][‘key2’]
$var->$prop[‘key’] $var->{$prop[‘key’]} ($var->$prop)[‘key’]
$var->$prop[‘key’]() $var->{$prop[‘key’]}() ($var->$prop)[‘key’]()
Class::$var[‘key’]() Class::{$var[‘key’]}() (Class::$var)[‘key’]()