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

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -