DynamicActiveQuery.php
protected function getDotNotatedValue($array, $attribute)
    {
        $pieces = explode('.', $attribute);
        foreach ($pieces as $piece) {
            if (!is_array($array) || !array_key_exists($piece, $array)) {
                return null;
            }
            $array = $array[$piece];
        }

        return $array;
    }
protected function getDotNotatedValue($array, $attribute)
    {
        $pieces = explode('.', $attribute);
        foreach ($pieces as $piece) {
            if (!is_array($array) || !array_key_exists($piece, $array)) {
                return null;
            }
            $array = $array[$piece];
        }

        return $array;
    }
protected function getDotNotatedValue ( $ array , $ attribute ) { $ pieces = explode ( '.' , $ attribute ) ; foreach ( $ pieces as $ piece ) { if ( ! is_array ( $ array ) || ! array_key_exists ( $ piece , $ array ) ) { return null ; } $ array = $ array [ $ piece ] ; } return $ array ; }
Returns the value of the element in an array refereced by a dot-notated attribute name.

@param array $array an array of attributes and values, possibly nested
@param string $attribute the attribute name in dotted notation

@return mixed|null the element in $array referenced by $attribute or null if no such
element exists
Returns the value of the element in an array refereced by a dot - notated attribute name .