Php Function Change Numbers Into Words 1=one
Posted On Sat Jul 09, 2011 By mel In Snippets forums topics about simple codes to make programming fun Forums
this simple function searches a string for any numberical numbers and changes them into numerical words for example 1 into one
i needed something like this on one of my codes and it works
so hopefully you can use it
all i ask is that
i needed something like this on one of my codes and it works
so hopefully you can use it
all i ask is that
function WriteNumbers($text){
## COPYRIGHT 2011 www.wallpaperama.com
$Numbers = array('zero ','one ','two ','three ','four ','five ','six ','seven ','eight ','nine ');
$Len = 10;
for($i=0; $i<= $Len; $i++) {
$text = str_replace($i,$Numbers[$i],$text);
}
return $text;
}Related Content
Information
Forums »
Snippets forums topics about simple codes to make programming fun »
Php Function Change Numbers Into Words 1=one
Snippets forums topics about simple codes to make programming fun »
Php Function Change Numbers Into Words 1=one
Title: Php Function Change Numbers Into Words 1=one
Description: this simple function searches a string for any numberical numbers and changes them into numerical words for example 1 into one
Tags: php ,code ,function ,snippet
Info: This Post Has Been Viewed 0 Times Since
Date: Sat Jul 09, 2011
Author mel Received 0 Replies #1388
Date: Sat Jul 09, 2011
Author mel Received 0 Replies #1388
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5