by randomdrake · 14y ago · 0 comments
array 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
They've also removed magic_quotes. A few functions that queried its status still exist, but you can't turn it on.
funcReturnsFunc(1)(2)
PHP's parser is... not exactly a great work of software engineering.