|
definedChecks whether a constant with the given name exists Description
bool defined(string
$constant_name )
Checks whether a constant with the given This function works also with class constants and enum cases.
Parameters
Return Values
Returns Examples
Example #1 Checking Constants
<?php Example #2 Checking Enum Cases (as of PHP 8.1.0)
<?php |