Answers for "php strip all string and only keep number"

PHP
1

php remove numbers from string

$words = preg_replace('/[0-9]+/', '', $words);
Posted by: Guest on September-25-2020
2

php remove non numeric

$res = preg_replace("/[^0-9]/", "", "Every 6 Months" );
Posted by: Guest on December-17-2020

Code answers related to "php strip all string and only keep number"

Browse Popular Code Answers by Language