PHP 5.4.0 new features:

  1. Support for traits has been added.
  2. Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.
  3. Function array dereferencing has been added, e.g. foo()[0].
  4. Closures now support $this.
  5. <?= is now always available, regardless of the short_open_tag php.ini option.
  6. Class member access on instantiation has been added, e.g. (new Foo)->bar().
  7. Class::{expr}() syntax is now supported.
  8. Binary number format has been added, e.g. 0b001001101.
  9. Improved parse error messages and improved incompatible arguments warnings.
  10. The session extension can now track the upload progress of files.
  11. Built-in development web server in CLI mode.

Comments

Post a Comment

Popular Posts