Location: PHPKode > scripts > Pretty Latin > pretty-latin/PrettyLatin.example.php
<?php
include("PrettyLatin.class.php");

// simple test example
new PrettyLatin(1);
print"<br/><br/>";

// same test static call
PrettyLatin::example();
print"<br/><br/>";


// Polish characters Test
PrettyLatin::example('ąćęłńóśźżĄĆĘŁŃÓŚŹŻ');
print"<br/><br/>";

?>
<?php 
// post form test
$tst = $_POST['tst'];
$char = "";
$EC = new PrettyLatin();
?>

<meta http-equiv="Content-type" content="text/html; charset=UTF-8;" />
<form method="post" action="PrettyLatin.example.php">
<label>Put some utf-8 text with national characters</label><br/>
<input name=tst value="<?php echo $_POST['tst'];?>"><br/>
<input type="submit" value="remove diacritic signs">
</form>
<?php
print "to latin=>".$EC->utfToLatin($tst);
?>
Return current item: Pretty Latin