Select word.

@param string $key     = NULL
@param mixed  $convert = NULL
493151
public function do(String $key = NULL, $convert = NULL)
    {
        if( $this->select === NULL )
        {
            if( is_file($this->lang) )
            {
                $read   = file_get_contents($this->lang);
            }

            if( is_file($this->externalLang) )
            {
                $eread  = file_get_contents($this->externalLang);
            }

            $read          = json_decode($read  ?? '', true);
            $eread         = json_decode($eread ?? '', true);
            $this->select  = array_merge((array) $eread, (array) $read);
        }
        
        if( $key === NULL )
        {
            return $this->select;
        }

        if( isset($this->select[$key]) )
        {
            if( is_array($convert) )
            {
                $return = str_replace(array_keys($convert), array_values($convert), $this->select[$key]);
            }
            else
            {
                $return = str_replace('%', $convert, $this->select[$key]);
            }
        }
        else
        {
            $return = $key;
        }

        return $return;
    }
162422
public function charset($charset, $convert = true)
    {
        $oldcharset = $this->_charset;
        $this->_charset = Horde_String::upper($charset);

        if (!$convert || ($oldcharset == $this->_charset)) {
            return;
        }

        foreach (array('and', 'or') as $item) {
            if (isset($this->_search[$item])) {
                foreach ($this->_search[$item] as &$val) {
                    $val->charset($charset, $convert);
                }
            }
        }

        foreach (array('header', 'text') as $item) {
            if (isset($this->_search[$item])) {
                foreach ($this->_search[$item] as $key => $val) {
                    $new_val = Horde_String::convertCharset($val['text'], $oldcharset, $this->_charset);
                    if (Horde_String::convertCharset($new_val, $this->_charset, $oldcharset) != $val['text']) {
                        throw new Horde_Imap_Client_Exception_SearchCharset($this->_charset);
                    }
                    $this->_search[$item][$key]['text'] = $new_val;
                }
            }
        }
    }
1103829
public function getAssign(string $key = null)
    {
        if ($key == null) {
            return $this->_book;
        }
        if (isset($this->_book[$key])) {
            return $this->_book[$key];
        }
        return null;
    }
420338
public function lpop($key)
    {
        $this->init();
        $result = $this->driver->lpop($key);
        return $this->convertFalseToNull($result);
    }
148206
public function getIssueByKey($key)
    {
        if (array_key_exists($key, $this->issues) && isset($this->issues[$key])) {
            return $this->issues[$key];
        }

        return null;
    }
743972
public function read($key = null)
    {
        try {
            $value = $this->subject->read($key);
        } catch (Doozr_Base_Service_Exception $exception) {
            throw new Doozr_Form_Service_Exception(
                sprintf('The key "%s" does not exist in store.', $key),
                null,
                $exception
            );
        }

        return $value;
    }
581488
protected function input($key = null)
	{
		if ($key === null) {
			return Input::all();
		} elseif (is_array($key)) {
			return Input::only($key);
		} else {
			return Input::get($key);
		}
	}
891119
function keyTranslate( $key )
    {
        $num = $this->keyPick( $key );
        if ( $num >=0 and $num <= count( $this->Handlers ) )
        {
            $handler = $this->Handlers[$num];
            return $handler->keyTranslate( $key );
        }

        return null;
    }
220930
public function remove($key) {
        if (isset($this->data[$key])) {
            $value = $this->data[$key];
            unset($this->data[$key]);
            return $value;
        } else {
            return null;
        }
    }
1135234
public static function ucWordsBetter( $words, $convertDelimiter = null )
    {
        $_cleaned = null;

        if ( null !== $convertDelimiter )
        {
            //	Convert dots to spaces, then spaces to namespace separators.
            $words = trim( str_replace( $convertDelimiter, ' ', $words ) );
        }

        $_parts = explode( ' ', $words );

        if ( !empty( $_parts ) )
        {
            foreach ( $_parts as $_part )
            {
                $_cleaned .= ' ' . ( $_part != strtoupper( $_part ) ? ucwords( $_part ) : $_part );
            }
        }

        return trim( $_cleaned );
    }
296197
private function streamSelect(array &$read, array &$write, $timeout)
    {
        if ($read || $write)
        {
            $except = null;

            return @stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout);
        }

        usleep($timeout);

        return 0;
    }
710063
public function choice($key, $number, array $replace = array(), $locale = null)
    {
        return $this->lang->choice($key, $number, $replace, $locale);
    }
1084034
public function getStash(?string $key = null)
    {
        $content = json_decode(file_get_contents($this->temp()), true);

        return $key ? (isset($content[$key]) ? $content[$key] : null) : $content;
    }
1191706
public function getString($key)
    {
        try {
            $result = $this->get(self::STRING, $key);
            if (!settype($result, 'string')) {
                return null;
            }
        } catch (\Exception $e) {
            return null;
        }
        return $result;
    }
411185
public function getHeader($key = null)
    {
        if (is_null($key)) {
            return $this->header;
        }

        return isset($this->header[$key]) ? $this->header[$key] : null;
    }
310844
public function popHeader(string $key = null)
	{
		$value = $this->getHeader($key);

		if ($value !== null) {
			unset($this->options['headers'][$key]);
		}

		return $value;
	}
1062513
public function select(...$select): Query\Select
    {
        $query = new Query\Select();
        $query->select(...$select);
        return $query;
    }