get_class_constants

Get the constants of the given class

Description

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

Parameters

  • string $class_name - The class name

Return Values

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