Forums »
  Wallpaper Scripts Forums And Topics About Programming »
    Change Numbers Into Letters In Php Script Function

Change Numbers Into Letters In Php Script Function

Description: Change Numbers Into Letters In Php Script Function
Tags: change ,numbers ,into ,letters ,in ,php ,script ,function
Posted On Thu Feb 14, 2008 By hostman In Wallpaper Scripts Forums And Topics About Programming Forums
today i was wondering how i can change number into letters..

so i created this function to help me do that in php

PHP CODE
<?
# FUNCTION BY WWW.WEBUNE.COM
 function remove_numbers_advanced($string)
    {
		$numbers = array();
		for($counter =0; $counter <= 10; $counter++) {
			$numbers[$counter] = $counter;
			
		}
		$replacements = array("zero ","one ","two ","three ","four ","five ","six ","seven ","eight ","nine ");
		$string = str_replace($numbers, $replacements, $string);
        return $string;
    }
    $string='This string will have all numbers removed - 213 555 3930';

    echo remove_numbers_advanced($string);
?>
this function will change 1 to one
technicion Thu Feb 11, 2010
Wow! that's I'm looking for its great it works fine.
Thank you very much!
Nadi Sat Mar 21, 2009
that's neat. [:
i've been looking for something just like this.
Information
Title: Change Numbers Into Letters In Php Script Function
Info: This Post Has Been Viewed 0 Times Since
Date: Thu Feb 14, 2008
Author hostman Received 2 Replies #1328
Related Content
Related Pages
Related Sites
Add Your Website
Share
wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Wed Jun 19, 2013 (-8 GMT)
Powered by: Webune Forums V5