php - $this->{$this->varname}() syntax -


this question has answer here:

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?

variable variables:

class properties may accessed using variable property names. ...

curly braces may used, delimit property name.

see examples on page, too.


Comments

Popular posts from this blog

javascript - Image onload event not firing in firefox -

android - getbluetoothservice() called with no bluetoothmanagercallback -

database connection - ImportError: No localization support for language 'eng' in python -