public function get($key, $default = null, $dotify = false)
    {
        $items = $this->data;

        $keys = array_filter(explode('.', $key));

        $length = count($keys);

        for ($i = 0; $i < $length; $i++)
        {
            $index = $keys[(int) $i];

            $items = &$items[$index];
        }

        if ($items === null)
        {
            $items = $default;
        }

        if ($dotify)
        {
            return $this->dotify($items);
        }

        return $items;
    }
public function get($key, $default = null, $dotify = false)
    {
        $items = $this->data;

        $keys = array_filter(explode('.', $key));

        $length = count($keys);

        for ($i = 0; $i < $length; $i++)
        {
            $index = $keys[(int) $i];

            $items = &$items[$index];
        }

        if ($items === null)
        {
            $items = $default;
        }

        if ($dotify)
        {
            return $this->dotify($items);
        }

        return $items;
    }
public function get ( $ key , $ default = null , $ dotify = false ) { $ items = $ this -> data ; $ keys = array_filter ( explode ( '.' , $ key ) ) ; $ length = count ( $ keys ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ index = $ keys [ ( int ) $ i ] ; $ items = & $ items [ $ index ] ; } if ( $ items === null ) { $ items = $ default ; } if ( $ dotify ) { return $ this -> dotify ( $ items ) ; } return $ items ; }
Returns the value from the specified key.

@param  string     $key
@param  mixed|null $default
@param  boolean    $dotify
@return mixed
Returns the value from the specified key .