Location: PHPKode > projects > Smileys > smileys/testSmileys.php
<html>
<body>
<?php

require "Smileys.php";

$class = new Smileys("smileys.txt");

$smileys = $class->getSmileys();

echo $class->insertSmileys("A Doom trooper: :trooper:<p>\n");
echo "<table border=1>\n\t";
for($i = 0; $i < sizeof($smileys); $i++) {
    echo "<tr>\n\t\t<td>" . $smileys[$i][0] . "</td><td><img src=\"" . $smileys[$i][1] . "\"></td>\n\t</tr>";
}
echo "</table>\n";

?>
</body>
</html>
Return current item: Smileys