- function GoogleTranslate(string $fromStr ,string $fromType ,string $toType ):string
- {
- $tr = new GoogleTranslate($toType, $fromType); // Or simply do not pass the second parameter
- $tr->setOptions(['verify' => false]);
- return $tr->Translate($fromStr);
- }
复制代码
几千字就不行,还需要设置别的嘛? |