get_class_constants

Get the constants of the given class

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

Parameters

  • string $class_name - The class name

Returns

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