Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Osama Salama  >  Convert number to text  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Convert number to text
Format money amounts for Egypt and Saudi Arabia
Author: By
Last change:
Date: 4 years ago
Size: 300 bytes
 

Contents

Class file image Download
<?php
require_once 'Class.Currency.php';

$Money=new Currency();

//convert to Egypt

echo $Money->Eg(3500);
echo 
"<br/>";
echo 
$Money->Eg(590.60);
echo 
"<hr/>";

//convert to Soudia

echo $Money->Sa(3500);
echo 
"<br/>";
echo 
$Money->Sa(590.60);
echo 
"<hr/>";



//Tanks..
 
?>