What you should know about PHP6

Discussion in 'HTML & Website Design' started by versatileshikha, Oct 30, 2009.

  1. #1
    PHP developers should be aware of this, so that your scripts will be able to upgrade if needed, when the time comes. Although the PHP 6 development process has been a slow one, it is coming.

    PHP 6 features being ported to PHP 5.3.x
    Much of what is going to be a part of PHP 6 is actually being implemented now in PHP 5.3.x. Here is a guide to new features from the official PHP site, that may be used with the current version:

    * Support for namespaces has been added.
    * Support for Late Static Bindings has been added.
    * Support for jump labels (limited goto) has been added.
    * Support for native Closures (Lambda/Anonymous functions) has been added.
    * There are two new magic methods, __callStatic and __invoke.
    * Nowdoc syntax is now supported, similar to Heredoc syntax, but with single quotes.
    * It is now possible to use Heredocs to initialize static variables and class properties/constants.
    * Heredocs may now be declared using double quotes, complementing the Nowdoc syntax.
    * Constants can now be declared outside a class using the const keyword.
    * The ternary operator now has a shorthand form: ?:.
    * The HTTP stream wrapper now considers all status codes from 200 to 399 to be successful.
    * Dynamic access to static methods is now possible.
    * Exceptions can now be nested.
    * A garbage collector has been added, and is enabled by default.

    Need more About this please reply.
     
    versatileshikha, Oct 30, 2009 IP
  2. kasun0777

    kasun0777 Well-Known Member

    Messages:
    355
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    138
    #2
    Post Php Category...
     
    kasun0777, Oct 30, 2009 IP