Login   Register  
PHP Classes
elePHPant
Icontem

File: Dict/example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2006-11-08 08:19
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>';

?>