Re: How to pronounce PHP code over the phone?

From: Date: Fri, 16 Oct 2009 16:09:53 +0000
Subject: Re: How to pronounce PHP code over the phone?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-298929@lists.php.net to get a copy of this message
Dotan Cohen wrote: > How would you read this out loud if you were to read it to someone > over the phone? > > ($item->getServiceId() ? $item->getServiceId() : $item->getId()))); > > Thanks! > FATAL ERROR: Non matching parenthesis. Ok, but really, I would say something along these lines: Open Conditional statement Test Condition Using object variable "item" call object member method "get service id" if condition results are true issue following command Using object variable "item" call object member method "get service id" if condition results are false issue following command Using object variable "item" call object member method "get id"

« previous php.general (#298929) next »