Question : how to remove words in contain integer php
Answered by : easy-elephant-3x0c4n6ob4xs
$input = "H3llo This is a? #test e3ample of a sentence-word bl&h.";
echo preg_replace('/(?=[^ ]*[^A-Za-z \'-])([^ ]*)(?:\\s+|$)/', '', $input);
This is of a sentence-word
Source : https://stackoverflow.com/questions/48256116/how-to-remove-words-in-php-that-contain-non-alphabet-characters-from-a-string | Last Update : Tue, 22 Dec 20