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 categories
is
set and is true
, the associative
array contains subarrays, one for each category of constant.
Get Programming PHP, 3rd 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.