PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Peter Schmalfeldt   Translate   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example. Make sure your HTML has content-type utf-8 encoding.
Class: Translate
Translate text using the Google AJAX API
Author: By
Last change: Removed unneeded comments
Date: 14 years ago
Size: 464 bytes


Class file image Download

$tl = new Translate("Let's translate this from English to Italian.", "en", "it");

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">