Answers for "php preg_match filter only numbers and dot"

PHP
2

php filter only numbers

$output = preg_replace( '/[^0-9]/', '', $string );
Posted by: Guest on June-19-2020

Code answers related to "php preg_match filter only numbers and dot"

Browse Popular Code Answers by Language