|PHP 5.6.0. Released|
|Written by Ian Elliot|
|Friday, 29 August 2014|
PHP 5.6 brings with it new and improved features including an interactive debugger, and has some backward incompatible changes.
The headline new feature in PHP 5.6 is constant scalar expressions.
This means it is now possible to provide a scalar expression involving numeric and string literals and/or constants in contexts where PHP previously expected a static value, such as constant and property declarations and default function arguments as demonstrated with this example:
Which produces this output:
Other new features are:
The following changes affect compatibility:
All these changes are documented in a migration guide and other improvements and bug fixes are listed in the Change Log.
There is also a Getting Started guide for phpdbg, the new interactive debugger which is implemented and distributed as a SAPI module, just as the CLI interface. It integrates with an initializes the Zend environment.
Migrating from PHP 5.5.x to PHP 5.6.x
PHP Gets A Formal Specification
The Next Version Of PHP And The Status Of PHPng
PHP Next Generation Project Announced
The Reason For The Weird PHP Function Names
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
or email your comment to: email@example.com
|Last Updated ( Friday, 29 August 2014 )|