Source Code:
(back to article)
<?php $string = "Hello 123, World 456."; echo $string = preg_replace('/[^0-9,.]/', '', $string);
Result:
Report an issue