Deprecation of PHP 4-Style Constructors • No more `<?=` and <script language=“php"> • Removal of Dead Server APIs • Removal of Hex Support in Numerical Strings • Removal of Deprecated Functionality • Deprecation of Salt Option for password_hash()
useful for shorthand - alternative to ‘||’ in javascript - less isset() $route = isset($_GET['route']) ? $_GET['route'] : 'index'; $route = $_GET['route'] ?? 'index'; PHP 7 Before PHP 7
fn_c}; use const some\namespace\{ConstA, ConstB, ConstC}; use some\namespace\ClassA; use some\namespace\ClassB; use some\namespace\ClassC as C; use function some\namespace\fn_a; use function some\namespace\fn_b; use function some\namespace\fn_c; use const some\namespace\ConstA; use const some\namespace\ConstB; use const some\namespace\ConstC; PHP 7 Before PHP 7 Group `use` Declarations