Documentation

GoogleTranslate.php

\file \brief Defines GoogleTranslate class for word translation

Usage: use Lwt\Classes\GoogleTranslate;

require_once( 'GoogleTranslate.php' ); $translations = GoogleTranslate::staticTranslate('Hello','en','de');

if(!$translations) echo 'Error: No translation found!'; else foreach($translations as $transl){ echo $transl, '
'; }

PHP version 8.1

Table of Contents

Classes

GoogleTranslate
Wrapper class to get translation.

        
On this page

Search results