Shortest V1 Release Ever

Created by: :: Oct 03, 2015 4:26:39 AM PDT

My current site, which has been a passive project of mine, will be completely replaced in the next coming couple of weeks! The look and feel will be generally the same, but I'm implementing some PHP features that I've barely used in the past and getting ready for PHP 7!

Features I am extremely excited for in the upcoming 7 release:

Double/chainable ternary:

$var = $_GET['q'] ?? FALSE;

... which is equivalent to:

$var = isset($_GET['q']) ? $_GET['q'] : FALSE;

Notice how isset() isn't being used in the PHP7 example? Yeah. Oh yeah... that's because isset() is an "unnecessarily cumbersome" way to tell if a variable is set or not.



  • guest Oct 06, 2017 1:44:35 PM PDT
    Ah plus PHP 7 is alot quicker