[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdt-dev] Ternary operator shortcut
Is the file in a php 5.3 project?
There is no error in my php editor.
On Thu, Jun 24, 2010 at 8:15 PM, Leonhardt, Matthew <matthew.leonhardt@xxxxxxxxxxx>
I'm new to this list, so please direct me elsewhere if my question isn't appropriate for this forum. ÂI'm wondering about the ternary operator shortcut:
$a = $b ?: $c;
as described here: http://php.net/manual/en/language.operators.comparison.php
ÂSince PHP 5.3, it is possible to leave out the middle part
Âof the ternary operator. _expression_ expr1 ?: expr3 returns
Âexpr1 if expr1 evaluates to TRUE, and expr3 otherwise.
When I do this in the PHP editor, I get "syntax error, unexpected :" ÂIs this addressed in Hudson? ÂIs there a workaround for this?
Operational Support Systems Engineer
Time Warner Cable - Northeast National Region
Programming & Web Development
Office: (315) 362-3538
Cell:ÂÂÂ (315) 378-7676
This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.
pdt-dev mailing list