Location: PHPKode > scripts > Kenny Translator > kenny-translator/Kenny.demo.php
<?php

//include Kenny class.
require_once("Kenny.class.php");

//create instance of class
$Kenny = new Kenny();

//example of usage: translate normal text to Kenny speech
echo "<p>";
echo $Kenny->translate("Oh my God, they've killed Kenny!");
echo "</p>";

//example of usage: translate Kenny speech to normal text
echo "<p>";
echo $Kenny->translate("Ffmppffmf mmpmmmfmmfmpmmmpffmpmfmm!");
echo "</p>";

//destuctor
$Kenny->kill();

?>
Return current item: Kenny Translator