include("cnumlib.php"); $out = ""; if(isset($_GET["n"])) { $_GET["n"] = ereg_replace("[^0-9.+-]", "", $_GET["n"]); $out = convertNumber($_GET["n"]); } if(isset($_GET["ajax"])) { echo $out; die(); } ?>
convertNumber
function, passing the number you want to convert to the function.
The function will return the converted number as a string.