PHP Classes

File: example.php

Recommend this page to a friend!
  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: 8 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 saudi

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



//thanks..
 
?>