Looking for #qualitywork for your #business #website?

Looking for #qualitywork for your #business #website? http://goo.gl/5wSniQ #websanskruti


PHP 5.4.0 is arrived with some great features!

The PHP development team has proudly announced the immediate availability of PHP 5.4.0 from 1st March 2012. This release is a major leap forward in the 5.x series, which includes a large number of new features and bug fixes.


PHP 5.4.0 significantly improves performance, memory footprint and fixes over 100 bugs.


Some of the key new features include: traits, a shortened array syntax, a built-in webserver for testing purposes and more.



As of PHP 5.4.0, PHP implements a method of code reuse called Traits.

Traits is a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. The semantics of the combination of Traits and classes is defined in a way which reduces complexity, and avoids the typical problems associated with multiple inheritance and Mixins.


A Shortened Array Syntax

As of PHP 5.4 you can also use the short array syntax, which replaces array() with [].


$array = array(

    “foo” => “bar”,

    “bar” => “foo”



// as of PHP 5.4

$array = [

    “foo” => “bar”,

    “bar” => “foo”




Built-in web server

As of PHP 5.4.0, the CLI SAPI provides a built-in web server.

This web server is designed for developmental purposes only, and should not be used in production.

URI requests are served from the current working directory where PHP was started, unless the -t option is used to specify an explicit document root.


Please visit php.net for more information.