Hi ,
I want to convert numbers into words. Can anyone please help me to do that or how can i implement it in PHP codes pls tell me that.
bimalnayak
0
Newbie Poster
Recommended Answers
Jump to PostHi ,
I want to convert numbers into words. Can anyone please help me to do that or how can i implement it in PHP codes pls tell me that.http://www.geekpedia.com/code28_Convert-a-number-from-digits-to-words.html
Jump to Post<?php define("MAJOR", 'pounds'); define("MINOR", 'p'); class toWords { var $pounds; var $pence; var $major; var $minor; var $words = ''; var $number; var $magind; var $units = array('','one','two','three','four','five','six','seven','eight','nine'); var $teens = array('ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen'); var $tens = array('','ten','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety'); var $mag = array('','thousand','million','billion','trillion'); function toWords($amount, $major=MAJOR, $minor=MINOR) { $this->major = …
All 7 Replies
muralibobby2015
17
Posting Pro
rajarajan2017
muralibobby2015
17
Posting Pro
muralibobby2015
17
Posting Pro
pulpers
0
Newbie Poster
diafol
manzarr
1
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.