Keith Hards
Personal blog of Keith Hards, UK.
Thursday, 10 September 2015
Debugging PHP constants
Handy tip:
If you'r bodded down in old legacy PHP code and
you need to know what constants are defined at any point during execution, simply call:
get_defined_constants(true)
You can either add this to Zend Debugger as an expression or error_log with print_r it.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment