get_defined_constants

  • (PHP 4 >= 4.1.0, PHP 5, PHP 7)
  • Returns an associative array with the names of all the constants and their values