ReflectionEnumBackedCase::getBackingValue

Gets the scalar value backing this Enum case

&reftitle.description; public ``int``string```ReflectionEnumBackedCase::getBackingValue`

Gets the scalar value backing this Enum case.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

The scalar equivalent of this enum case.

&reftitle.examples;

### `ReflectionEnum::getBackingValue` example

    <?php
    enum Suit: string
    {
        case Hearts = 'H';
        case Diamonds = 'D';
        case Clubs = 'C';
        case Spades = 'S';
    }

    $rEnum = new ReflectionEnum(Suit::class);

    $rCase = $rEnum->getCase('Spades');

    var_dump($rCase->getBackingValue());
    ?>

&example.outputs;

    string(1) "S"

&reftitle.seealso;

- Enumerations