defined

PHP 4, PHP 5, PHP 7, PHP 8
defined - Checks whether a given named constant exists
Manual
Code Examples

Example #1 Checking Constants

PHP Version: