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 Arash Moslehi  >  NumPer  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: NumPer
Spell numbers in the Persian idiom
Author: By
Last change:
Date: 2006-06-03 10:06
Size: 420 bytes
 

Contents

Class file image Download
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form method="get" action="example.php">
Number : <input name="no">&nbsp;
<input type="submit" value="Persian">
</form>

<?
include("numper.class.php");
if (!empty(
$_GET["no"])){
$number $_GET["no"]; 
// All you need to insert in your script is :
$numper = new NumPer;
$numper->Number $number;
$numper->num2per($numper->Number);
}
?>