News for hackers. Stuff that matters.
Re:Simply Secure PHP Cryptography by aruggirello on Thursday July 13, 2017 @03:47PM (#14764544)
No notices - But this syntax has been introduced in 7.0. Old style is:

isset($array[$key]) ? $array[$key] : $default

Which is, admittedly, just a bit uglier.

Edit: isset() is a language construct, not a function call. So it does not incur performance penalties. The ?? operator was introduced for 'cosmetic' reasons only, so don't rush to update your source...

There are no comments on this comment yet.