Changelog

Core constants are categorized under Core,
previously internal. On Windows, the Core Constants
are categorized under mhash.

5.2.11

The categorize parameter now operates appropriately.
Previously, the categorize parameter was interpreted
as !is_null($categorize), making any value other than NULL
force the constants to be categorized.

If you want to filter through and return only the prefix for your constants (i.e. you have constants with a naming scheme), then you can use this quick little function. It comes in handy for debugging.