An Oracle blog about NetBeans for PHP

PHP 5.4 Support: Minor Features

Hi all! This week is another PHP week. Asking why? PHP migrates to Git and GitHub! Isn't that cool? And this week is also NetBeans for PHP week, because we have some new NetBeans 7.2 features for you.

Note: All PHP 5.4 features are available in your projects after setting Project Properties -> Sources -> PHP Version to PHP 5.4 value, or after choosing the same value during a PHP Project creation (in New Project Wizard).

Callable type hint

Let's start with a new PHP 5.4 type hint - callable. It's now in code completion and you can use it in your function declarations!

PHP 5.4: Callable

Binary notation for integers

The next feature is about recognizing of a new binary notation for integers, so you can use it without any problem - no syntax error will occur.

PHP 5.4: Binary


And the last feature is about using of Class::{expr}() invocation. It's supported by our parser too, so no syntax errors will occur either.

PHP 5.4: Class::{expression}()

That's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (component php, subcomponent Editor). Thanks.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.