Jump to content
UnixDevel

New features [php 5.4]

Recommended Posts

Posted

Dupa cum stiti a fost facut release la php 5.4 ,imi place ca vine cu cateva chestii noi ...ca array ..si srv web direct din cli

New features

PHP 5.4.0 offers a wide range of new features:

Support for traits has been added.

Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.

Function array dereferencing has been added, e.g. foo()[0].

Closures now support $this.

<?= is now always available, regardless of the short_open_tag php.ini option.

Class member access on instantiation has been added, e.g. (new Foo)->bar().

Class::{expr}() syntax is now supported.

Binary number format has been added, e.g. 0b001001101.

Improved parse error messages and improved incompatible arguments warnings.

The session extension can now track the upload progress of files.

Built-in development web server in CLI mode.

Deprecated features in PHP 5.4.x

Deprecated functions:

mcrypt_generic_end()

mysql_list_dbs()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...