Re: How to pronounce PHP code over the phone?

From: Date: Wed, 21 Oct 2009 14:38:20 +0000
Subject: Re: How to pronounce PHP code over the phone?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-299157@lists.php.net to get a copy of this message
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

« previous php.general (#299157) next »