News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
Playing with the new PHP5.4 features
November 28, 2011 @ 08:10:51

Gonzalo Ayuso has a new post to his blog today showing some of the experimentation he's done with PHP 5.4 features like the short array syntax, calling methods through arrays and traits.

PHP5.4 it's close and it's time to start playing with the new cool features. I've created a new Virtual Machine to play with the new features available within PHP5.4. I wrote a post with the most exciting features (at least for me) when I saw the feature list in the alpha version. Now the Release Candidate is with us, so it's the time of start playing with them. I also discover really cool features that I pass over in my first review.

Code snippets are included for each example for:

  • Class member access on instantiation
  • Short array syntax
  • Support for Class::{expr}() syntax
  • Indirect method call through array
  • Callable typehint
  • Traits
  • Array dereferencing support

He points to this other post for a complete list of what's been added in 5.4.

0 comments voice your opinion now!
feature releasecandidate traits example tutorial


blog comments powered by Disqus

Similar Posts

HowTo Forge: Installing The PHP-MSSQL Module On CentOS 5.0

Felix Geisendorfer's Blog: Two Tutorials - Title to Slug & Dependencies with If

PHPMaster.com: Integrating Amazon S3 using PEAR

Nick Lo's Blog: RewriteRouter and Zend_Config play together

Alexey Zakhlestin's Blog: Ode to mb_ereg functions


Community Events











Don't see your event here?
Let us know!


package install security unittest application introduction symfony2 threedevsandamaybe podcast component hack performance project release database composer hhvm facebook language framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework