PHP Classes

File: Dict/example.php

Recommend this page to a friend!
  Classes of Arkadiusz Malinski   Dict Translator   Dict/example.php   Download  
File: Dict/example.php
Role: Example script
Content type: text/plain
Description: example of using
Class: Dict Translator
Translate words between Polish and English
Author: By
Last change:
Date: 17 years ago
Size: 539 bytes
 

Contents

Class file image Download
<?

  
require_once('class.dicttranslator.php');
   
  
$tlumacz = new DictTranslator();
  
$tlumaczenie = $tlumacz->translate('validation');

   echo
'<table border=0>';
   echo
'<tr>';
   echo
'<td width="50%"><b>polish words</b></td>';
   echo
'<td width="50%"><b>english words</b></td>';
   echo
'</tr>'

  
foreach($tlumaczenie as $polish=>$english) {
      echo
'<tr>';
      echo
'<td width="50%">'.$polish.'</td>';
      echo
'<td width="50%">'.$english.'</td>';
      echo
'</tr>'
  
}

   echo
'</table>';

?>