SyntaxFix
Write A Post
Hire A Developer
Questions
You can use following function:
function extract_numbers($string) { preg_match_all('/([\d]+)/', $string, $match); return $match[0]; }