
Upgrade to PHP 7 boosts performance, reduces memory, and introduces internal changes like an abstract syntax tree and uniform variable syntax for faster, greener server hosting.
Explore changes to existing features in php 7, including fatal errors now thrown as exceptions and unified handling of invalid arguments. Be aware of variable variables and Jason code changes.
Cover php 7 removals, including the original masc. extension, posix regex functions, deprecated magic quotes, and asp or html tags; migrate to mysqli or pdo and perl-compatible regex.
Explore the PHP 7 spaceship operator to compare two values and return minus one, zero, or one for custom sorting with usort, including its ability to compare arrays or objects.
Explore how the PHP 7 random function uses a cryptographically strong RNG to generate integers between a minimum and maximum, validating integers or convertible strings and rounding floats down.
Explore how PHP 7 generators delegate work to sub-generators or traversable objects using yield from, the getReturn method, and array literals in delegation.