Return to Snippet

Revision: 32022
at September 17, 2010 12:48 by traeregan


Initial Code
function  remove_non_numeric($string)
{
	return preg_replace('/\D/', '', $string)
}

// OR

$result = ereg_replace( '[^0-9]+', '', $source );

Initial URL

                                

Initial Description

                                

Initial Title
Remove Non Numeric Characters

Initial Tags
regex, php

Initial Language
PHP