PHP » GoLang |
login |
register |
about
|
GoLang ReflectionClass::hasConstant
request it (322)
GoLang replacement for PHP's ReflectionClass::hasConstant
[edit | history]
PHP ReflectionClass::hasConstantPHP original manual for ReflectionClass::hasConstant [ show | php.net ]ReflectionClass::hasConstant(PHP 5 >= 5.1.2, PHP 7) ReflectionClass::hasConstant — Checks if constant is defined Description
public bool ReflectionClass::hasConstant
( string
$name
)Checks whether the class has a specific constant defined or not. Parameters
Return Values
Examples
Example #1 ReflectionClass::hasConstant() example
<?php The above example will output something similar to: bool(true) bool(false) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|