need help w/ unfamiliar syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I've wasted two days trying to find this in the documentation. Google is no help here either; they only index text.

While looking at some code using objects I came across this:

    $this->{$spec}

The example works with or without the curly braces, but I know they aren't there for just for decoration ;)

Will somebody be so kind as to point me where in the docs this syntax is explained?

tia

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux