Dočekali smo i PHP verziju 5.4.0.
New features in PHP
- Improvements in memory management and performance.
- Traits – A new mechanism for code reuse. It reduces the limitations of single inheritance.
- Shortened Array syntax. Now use
[...]
instead ofarray(...)
to create arrays. - Magic Quotes have been deprecated and entirely removed in PHP 5.4.0. Other language features that have been given the boot are safe mode,
break
/continue
, and$var
syntax. - WordPress, Drupal, and every other PHP based websites will run faster when they start using PHP 5.4.0.
- Built-in Web server – PHP 5.4.0 now bundles its own web server which can be used for testing purpose. So you don’t need to install Apache web server to learn PHP/develop a website any more.
- New version of Zend Framework.