public static function getValue($member)
    {
        // Typecast to string (we could be getting either a string or an instance of
        // Enumeration in $member)
        $member = (string)$member;
        if (! static::isDefined($member)) {
            static::triggerUndefinedConstantError($member);
        }

        return static::toArray()[$member];
    }
public static function getValue($member)
    {
        // Typecast to string (we could be getting either a string or an instance of
        // Enumeration in $member)
        $member = (string)$member;
        if (! static::isDefined($member)) {
            static::triggerUndefinedConstantError($member);
        }

        return static::toArray()[$member];
    }
public static function getValue ( $ member ) { // Typecast to string (we could be getting either a string or an instance of // Enumeration in $member) $ member = ( string ) $ member ; if ( ! static :: isDefined ( $ member ) ) { static :: triggerUndefinedConstantError ( $ member ) ; } return static :: toArray ( ) [ $ member ] ; }
Get the value of a given member's name

<h3>Use case</h3>
You have a string representation of the Enumeration member and you would
like to know the value that member holds.

<h3>Example</h3>
```
class Animal extends Dreamscapes\Enumeration
{
const Horse = 0;
const Dog = 1;
}

echo Animal::getValue('Dog'); // Prints an integer, 1
```

@param     string|Enumeration      $member     The member's expected name
@return    mixed                               The value of the member
Get the value of a given member s name