Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ben Yacoub Hatem  >  Taxation laws validator  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample usage of the class
Class: Taxation laws validator
Validate and fix tax values for e-commerce
Author: By
Last change:
Date: 10 years ago
Size: 409 bytes
 

Contents

Class file image Download
<?php

/**
 * Sample usage of the class
 * 
 * @package 
 * @author Ben Yacoub Hatem <hatem@php.net>
 * @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);
}


?>