An Oracle blog about NetBeans for PHP

Values of Constants

After a few days I have found a minute to write a short blog post. Thanks to Radek, in the development build of NetBeans 6.9 values of constants are displayed in Navigator window and also in Code Completion window. As you can see on the picture below, the values are displayed for the global constants and for class constants as well. 

The value of a constant also appears in the documentation window  for the selected code completion item.

Join the discussion

Comments ( 10 )
  • Tom Thursday, April 22, 2010

    Really nice. Thanks for the update!

  • Pet Thursday, April 22, 2010

    Sweet! Showing the value on mouse over would be really cool :)

  • tufan Thursday, April 22, 2010

    really nice, for me one of the most beautiful improvements in the last weeks.. thanx for this.

    Maybe it's not the place for this, but I would be very happy, if the next step in this direction would be code completion of (global) array keys.

  • Pet Thursday, April 22, 2010


    file an issue for this, I'll vote for it

  • tufan Thursday, April 22, 2010


    there are already two issues related to this (which i could find in the bugzilla):

    180593 - Code Hints For Array objects

    180753 - Auto-completion for named array key

    i'll vote for both of them.

  • tufan Thursday, April 22, 2010

    in today's builds "Go to Declaration" seems to be broken. also ctrl+click only leads to the class declaration line. Don't know if this is related to this enhancement though...

  • radek Thursday, April 22, 2010


    "Go to Declaration" seems to work for me. Can you provide me with more details, thanks

  • tufan Thursday, April 22, 2010


    deleting cache dir and automatic rescan of the projects solved the problem. thanx

  • radek Thursday, April 22, 2010

    I agree that better type inference should be next logical step in our php support

  • alexey_baranov Saturday, April 24, 2010

    very good

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