简体   繁体   中英

php string translator API

Is there any API which can convert translate my string into another language.

I have string $string="hello world" . I want to convert only hello world to urdu language.

Is there any API or SDK for this?

您可以使用Google翻译

$translate = file_get_contents("https://www.googleapis.com/language/translate/v2?key=YOUR_API_KEY&target=ur&q={$string}");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM