src/Pinyin.php
public function sentence($string, $delimiter = ' ', $option = \PINYIN_NO_TONE)
    {
        if (\is_int($delimiter)) {
            list($option, $delimiter) = array($delimiter, ' ');
        }

        return implode($delimiter, $this->convert($string, $option | \PINYIN_KEEP_PUNCTUATION | \PINYIN_KEEP_ENGLISH | \PINYIN_KEEP_NUMBER));
    }
public function sentence($string, $delimiter = ' ', $option = \PINYIN_NO_TONE)
    {
        if (\is_int($delimiter)) {
            list($option, $delimiter) = array($delimiter, ' ');
        }

        return implode($delimiter, $this->convert($string, $option | \PINYIN_KEEP_PUNCTUATION | \PINYIN_KEEP_ENGLISH | \PINYIN_KEEP_NUMBER));
    }
public function sentence ( $ string , $ delimiter = ' ' , $ option = \ PINYIN_NO_TONE ) { if ( \ is_int ( $ delimiter ) ) { list ( $ option , $ delimiter ) = array ( $ delimiter , ' ' ) ; } return implode ( $ delimiter , $ this -> convert ( $ string , $ option | \ PINYIN_KEEP_PUNCTUATION | \ PINYIN_KEEP_ENGLISH | \ PINYIN_KEEP_NUMBER ) ) ; }
Chinese to pinyin sentence.

@param string $string
@param string $delimiter
@param int    $option

@return string
Chinese to pinyin sentence .