protected function getValue(array $data, array $path)
    {
        $found = true;

        for ($x = 0; ($x < count($path) && $found); $x++) {
            $key = $path[$x];

            if (isset($data[$key])) {
                $data = $data[$key];
            } else {
                $found = false;
            }
        }

        if ($found) {
            return $data;
        }
        return null;
    }
protected function getValue(array $data, array $path)
    {
        $found = true;

        for ($x = 0; ($x < count($path) && $found); $x++) {
            $key = $path[$x];

            if (isset($data[$key])) {
                $data = $data[$key];
            } else {
                $found = false;
            }
        }

        if ($found) {
            return $data;
        }
        return null;
    }
protected function getValue ( array $ data , array $ path ) { $ found = true ; for ( $ x = 0 ; ( $ x < count ( $ path ) && $ found ) ; $ x ++ ) { $ key = $ path [ $ x ] ; if ( isset ( $ data [ $ key ] ) ) { $ data = $ data [ $ key ] ; } else { $ found = false ; } } if ( $ found ) { return $ data ; } return null ; }
Get value from array by path

@param array $data
@param array $path
@return array|null
Get value from array by path