Answers for "php regex get number from string"

PHP
3

php regex only number

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

php regex match numbers only

/[0-9]/gm
Posted by: Guest on April-06-2022

Code answers related to "php regex get number from string"

Browse Popular Code Answers by Language