Location: PHPKode > scripts > Taxation laws validator > taxation-laws-validator/sample.php
<?php

/**
 * Sample usage of the class
 * 
 * @package 
 * @author Ben Yacoub Hatem <hide@address.com>
 * @copyright Copyright (c) 2004
 * @version $Id$ - 25/05/2004 11:57:05 - sample.php
 * @access public
 **/

require_once("code_fiscal.class.php");

$code = "12144M/C/C/000";
$tva = 0.1;

$fiscal = new codefiscal;
if ($fiscal->is_valid($code)) {
    echo $fiscal->fix_tva($tva);
}


?>
Return current item: Taxation laws validator