Foreword

With PHP 7, we get a host of new features and improvements, such as abstract syntax tree, throwable errors, scalar type hints, return type declarations, speed improvements, and so much more.

The question facing PHP developers these days is not "Should I use the new features?", but "How do I implement these features to build better applications faster?"

I remember building applications in PHP 4. It was a simpler time for PHP developers as it could be intermingled with HTML and everything was in one file. Instead of frameworks, we had libraries of functions that got included. Applications were basically just CRUD desktop applications that we figured out how to shovel onto the web.

Application development has changed several times since then. ...

Get PHP 7 Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.