how to remove words in contain integer php

Solutions on MaxInterview for how to remove words in contain integer php by the best coders in the world

showing results for - "how to remove words in contain integer php"
Stefano
10 Jan 2020
1$input = "H3llo This is a? #test e3ample of a sentence-word bl&h.";
2echo preg_replace('/(?=[^ ]*[^A-Za-z \'-])([^ ]*)(?:\\s+|$)/', '', $input);
3
4This is of a sentence-word
5