Location: PHPKode > scripts > Love match > love-match/example.lovematch.php
<?php

/**********************************************************************************
****** class name : lovematch
****** author     : Martin Lacher
**********************************************************************************/

require("class.lovematch.php");
$lm = new lovematch;

$name1 = "Kirk";
$name2 = "Sandy";

$m = $lm->match($name1,$name2);

echo "Lovematch for ".$name1 . " and ".$name2.": ". $m. "%<br/>";
echo $lm->message($m, $name1, $name2);

?>
Return current item: Love match