public function get($key, $default = null)
    {
        if(!is_string($key) || empty($key)) {
            return $default;
        }

        //split string into array
        $item_pieces = explode('.', $key);

        //let igorw check if array item exists
        return igorw\get_in($this->data, $item_pieces, $default);
    }
public function get($key, $default = null)
    {
        if(!is_string($key) || empty($key)) {
            return $default;
        }

        //split string into array
        $item_pieces = explode('.', $key);

        //let igorw check if array item exists
        return igorw\get_in($this->data, $item_pieces, $default);
    }
public function get ( $ key , $ default = null ) { if ( ! is_string ( $ key ) || empty ( $ key ) ) { return $ default ; } //split string into array $ item_pieces = explode ( '.' , $ key ) ; //let igorw check if array item exists return igorw \ get_in ( $ this -> data , $ item_pieces , $ default ) ; }
Gets item from array if it exists else return default value
@param string $item dot notation config_file.array.item
@param mixed $default value if it doesn't exist
@return mixed
Gets item from array if it exists else return default value