Re: [RFC] Implicit isset() in Shorthand Ternary Operator
| From: | Andrea Faulds | Date: | Tue, 16 Sep 2014 21:00:52 +0000 |
| Subject: | Re: [RFC] Implicit isset() in Shorthand Ternary Operator | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77277@lists.php.net to get a copy of this message | ||
On 16 Sep 2014, at 21:46, Kingsquare.nl - Robin Speekenbrink <robin@kingsquare.nl> wrote:
> As a userland point of view on this: will this have a shorthand?
No.
> i.e.
> what will happen if i leave out the second part?
>
> ie.
> $var = $_GET['test'] ?? ;
>
> would that be the same as
> $var = @$_GET['test’];
No, that would be a syntax error.
--
Andrea Faulds
http://ajf.me/