Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
MyCLabs
Enum
Enum
getKey
MyCLabs\Enum\Enum::getKey PHP Method
Enum Class Documentation
Show file
Open project: myclabs/php-enum
getKey()
public
method
Returns the enum key (i.e. the constant name).
public
getKey
( ) :
mixed
return
mixed
public function getKey() { return static::search($this->value); }
Enum
__callStatic
__construct
__toString
equals
getKey
getValue
isValid
isValidKey
keys
search
toArray
values