php - $this->{$this->varname}() syntax -
this question has answer here:
- php curly brace syntax member variable 5 answers
http://www.php.net/manual/en/functions.variable-functions.php#24931
that function $this->{$this->varname}()
. tried out , confirmed that's valid syntax leaves me wondering... php.net discuss use of curly brackets in variable names that?
class properties may accessed using variable property names. ...
curly braces may used, delimit property name.
see examples on page, too.
Comments
Post a Comment