2009/10/16 Dotan Cohen <dotanco...@gmail.com>:
> 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!
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

I would optimize this though.

($item->getServiceId() || $item->getId())

Unless you REALLY need to call $item->getServiceId() twice.

So, this should be a little easier to say.

-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

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

Reply via email to