public function getArrayValue(array $array, string $key)
    {
        foreach ($this->getBoth($key) as $loopKey) {
            if (array_key_exists($loopKey, $array)) {
                return $array[$loopKey];
            }
        }
    }
public function getArrayValue(array $array, string $key)
    {
        foreach ($this->getBoth($key) as $loopKey) {
            if (array_key_exists($loopKey, $array)) {
                return $array[$loopKey];
            }
        }
    }
public function getArrayValue ( array $ array , string $ key ) { foreach ( $ this -> getBoth ( $ key ) as $ loopKey ) { if ( array_key_exists ( $ loopKey , $ array ) ) { return $ array [ $ loopKey ] ; } } }
Get the value in an array on a given key.
Checks both on full and minified key.

@param array $array
@param string $key
@return mixed|null
@throws \JosKolenberg\Jory\Exceptions\JoryException
Get the value in an array on a given key . Checks both on full and minified key .