Name
get_defined_constants
Synopsis
array get_defined_constants( [bool categories
])
Returns an associative array of all constants defined by
extensions and the define( )
function and their values. If categorize
is set and is true
, the
associative array contains sub-arrays, one for each category of
constant.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.