PHP 8.5.0 Beta 3 available for testing

ReflectionClassConstant::__construct

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::__construct โ€” Constructs a ReflectionClassConstant

่ฏดๆ˜Ž

public ReflectionClassConstant::__construct(object|string $class, string $constant)

Constructs a new ReflectionClassConstant object.

ๅ‚ๆ•ฐ

class

Either a string containing the name of the class to reflect, or an object.

constant

The name of the class constant.

้”™่ฏฏ๏ผๅผ‚ๅธธ

Throws an Exception in case the given class constant does not exist.

ๅ‚่ง

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top