Location: PHPKode > scripts > Classicus > classicus/example.php
<?php
// Output in output.html
include("classicus2.php");
$c = new classicus();
ob_start();
?>
Lupus:<br>
<?php print_r($c->znw("Lupus")); ?>

Corpus-corpora iratus:<br>
<?php print_r($c->bnw("Corpus","Iratus",1,"o","Corpora")); ?>

Fortis:<br>
<?php print_r($c->vtrap("Fortis")); ?>

Corpus-corpora iratus comparasion: <br>
<?php print_r($c->btrap("Corpus","Iratus",1,"o","Corpora")); ?>

Currere:
<?php print_r($c->ww("Currere",1)); ?>

Roman for 10
<?php print_r($c->dec2roman(10)); ?>

Decimal for X
<?php print_r($c->roman2dec("X"));?>

<?php
$x = ob_get_contents(); ob_end_clean();
echo(nl2br($x));
?>
Return current item: Classicus