PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of ahmad mazyad   Number to Arabic   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: test using the class
Class: Number to Arabic
Convert number to Arabic words
Author: By
Last change:
Date: 11 years ago
Size: 408 bytes
 

Contents

Class file image Download
<?php
include("num_to_ar.php");
//the dollar is Masculine in ar
$ar_number= new convert_ar('1013212', "male");
echo
$ar_number->convert_number(). ' دولار أميركي فقط لا غير';
echo
"<br/>";
//the LP (ليرة لبنانية) is Feminin in ar
$ar_number= new convert_ar('99998712302', "female");
echo
$ar_number->convert_number(). ' ليرة لبنانية فقط لا غير';
?>