function onlyDigits($string) {
return preg_replace("#[^0-9]#", "", $string);
}
PHP
<iframe width="100%" height="236" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=521e09312f006" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 28/08/2013