At 9:42 AM +0200 10/21/09, Dotan Cohen wrote:
 > Open paren. Dollar-sign "item" de-ref getServiceID method. Question mark.
 Dollar-sign "item" de-ref getServiceID method again. Colon.
 Dollar-sign "item" de-ref getID method. Close up matching parenthesis.

 > http://en.wikipedia.org/wiki/Reference_%28computer_science%29


Thanks. The word Reference was what was missing, as was the term "de-ref".

Read a bit further down in the above link, namely the php link, which is:

http://www.php.net/manual/en/language.variables.variable.php

Using the term "de-ref is not complete and could be misleading -- dereferencing a variable in php is simply $$var and not ->var.

The "arrow operator" ($a->$b) dereferences the element to its left and accesses the member to it's right. If you want an example in C it would be (*a).b

While I was not able to find the "official" name for the operator, but it could be called an "dereference access operator" or the "field access operator".

HTH's

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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

Reply via email to