protected function parseSearch()
    {
        return implode(' ', array_map(function ($key, $val) {
            if (is_null($val)) {
                return strtoupper($key);
            }
            return sprintf('%s %s', strtoupper($key), $val);
        }, array_keys($this->where), array_values($this->where)));
    }
protected function parseSearch()
    {
        return implode(' ', array_map(function ($key, $val) {
            if (is_null($val)) {
                return strtoupper($key);
            }
            return sprintf('%s %s', strtoupper($key), $val);
        }, array_keys($this->where), array_values($this->where)));
    }
protected function parseSearch ( ) { return implode ( ' ' , array_map ( function ( $ key , $ val ) { if ( is_null ( $ val ) ) { return strtoupper ( $ key ) ; } return sprintf ( '%s %s' , strtoupper ( $ key ) , $ val ) ; } , array_keys ( $ this -> where ) , array_values ( $ this -> where ) ) ) ; }
Parse the 'where' conditions for imap_search

@return string
Parse the where conditions for imap_search