get_class_constants

Description

function get_class_constants(
  string $class_name,
): array<string,mixed>

Get the constants of the given class.

Parameters

  • string $class_name - The class name

Return Values

  • array - - Returns an associative array of constants with their values.