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

Class::{expr}()

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.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today