PHP 5.4.0 released
php.net
PHP 5.4.0 released
1–10 of 103 posts
Re: PHP 5.4.0 released
#2This is good news indeed, they seem to be actually improving the language for once.
Re: PHP 5.4.0 released
#3Re: PHP 5.4.0 released
#4and the UPGRADING instructions: http://svn.php.net/viewvc/php/php-src/tags/php_5_4_0/UPGRADI...
Re: PHP 5.4.0 released
#5Re: PHP 5.4.0 released
#6array dereferencing - $object->method()[$index] is now valid syntax
built-in webserver via CLI - php -s - http://php.net/manual/en/features.commandline.webserver.php
traits and the insteadof operator - http://php.net/language.oop5.traits.php
shortened array syntax - $array = [1, 2, [1, 2, 3], 4];
Finally removed register_globals ;)
Default charset of UTF-8!
Read all about it! http://www.php.net/manual/en/migration54.php
Re: PHP 5.4.0 released
#7 - you can now do function()[0]
-
Seems like a return to sanity for the PHP team, at least temporarily.. I even kinda like the traits!Re: PHP 5.4.0 released
#8I spend a lot of time programming in PHP. Its reputation is pretty bad, but updates like this keep me going!
Re: PHP 5.4.0 released
#9Nice
Re: PHP 5.4.0 released
#10Are there any benchmarks (synthetic or real-world) for the performance improvements? Would have been nice if the release notes had provided some.