Includes PDF, EPUB, and MOBI versions

PHP 7 Upgrade Guide

Your comprehensive guide to all the new features, breaking changes, and more.

The PHP 7 release is just around the corner, bringing some much-desired changes and improvements to the language. However, many developers simply aren't aware of what's coming. This book covers all of the new features coming in PHP 7, as well as breaking changes and "gotchas" to watch out for. You'll learn how to take advantage of these changes and get started with PHP today.

Minimum Price:
$8.99
Suggested Price:
$12.99

A portion of the proceeds will be donated to a non-profit organization!

Purchase E-Book Free Sample

Have a coupon code? Enter it here and press "Apply".

 

Learn about the new features and changes coming in PHP 7!

The PHP 7 release is just around the corner, bringing some much-desired changes and improvements to the language. However, many developers simply aren't aware of what's coming. This book covers all of the new features coming in PHP 7, as well as breaking changes and "gotchas" to watch out for. You'll learn how to take advantage of these changes and get started with PHP today.

New Features

Learn about the exciting new features and how to use them in your PHP applications.

Language Improvements

See how PHP 7 is faster and more flexible than ever.

Changes and Deprecations

Watch out for some potentially breaking changes.

Installing PHP 7

Get started with PHP 7 today!

Look Inside

This PHP 7 ebook covers everything you need to know in great detail.

Learn By Example

Each chapter contains detailed code samples.


Edge Cases & Gotchas

See common mistakes and how to avoid them.


Further Reading

Footnotes provide additional guidance and links to external resources.

Try a Sample Purchase Now

Table of Contents

This book contains a comprehensive listing of all the major improvements and changes PHP 7 offers:


  • Preface
    • Who is this book for
    • Contents
    • Other resources
    • Acknowledgements
  • Getting Started
    • Installing PHP 7
    • PHP 7 Vagrant Image
  • Part 1 - New Features
    • Scalar Type Hints
    • Return Type Declarations
    • Combined Comparison (Spaceship) Operator
    • Null coalesce operator
    • Unicode Codepoint Escape Syntax
    • Anonymous Classes
    • Group Use Declarations
    • Generator Return Expressions
    • Closure Call Method
    • Filtered unserialized()
    • Generator Delegation
    • Reliable User-land CSPRNG
    • Integer Division
    • preg_replace_callback_array
    • IntlChar Class
  • Part 2 - Language Changes & Improvements
    • Performance
    • Language Consistency
    • Context-Sensitive Lexer
    • Error Handling and Exceptions
    • Expectations
    • Array Constants with define()
    • Filtered unserialize()
    • session_start() Options
    • Reflection Enhancements
    • Reserved Words
    • Integer Semantics
    • Division By Zero
    • JSON Library
    • Behavior Changes to foreach
    • Behavior Changes to list
    • Parameter Handling Changes
    • Custom Session Handler Return Values
    • Errors on Invalid Octal Literals
  • Part 3 - Deprecations and Removals
    • Deprecation of PHP 4 Constructors
    • Deprecation of Salt Option for password_hash()
    • Removal of Previously-Deprecated Features
    • Removal of Alternative PHP Tags
    • Reclassification and Removal of E_STRICT Notices
    • Removal of Multiple Default Cases in Switches
    • Removal of Numeric Hexadecimal String Support
    • Removal of Dead SAPIs and Extensions
    • Removal of the date.timezone Warning
  • Appendix - Backward Compatibility Breaks
    • Language Changes
    • Standard Library Changes
    • Other Changes

Try a Free Sample

Read the first few chapters for free!

PHP 7 Book

Still not sure if this book is right for you? That's okay, you can check out some of the chapters with no obligation to buy.

Read Online Download PDF

About the Author

Colin O'Dell is a Lead Web Developer at Unleashed Technologies, a web and hosting firm based in Maryland. He began programming at age 8, co-founded a local web shop at 15, and has over 10 years of professional experience with PHP. In addition to being an active member of the PHP League and maintainer of the league/commonmark project, Colin is also a Symfony Certified Developer (Expert) and Magento Certified Developer.

Colin O'Dell