Here's a point of reference for you to solve through cycles.
$string = "Hello world! The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested."; $words=explode(" ",$string); foreach ($words as $word) { $letters=str_split($word); $letters=array_unique($letters); if (count($letters)!=strlen($word)) { $result[]=$word; } } print_r($result); Array ( [0] => Hello [1] => standard [2] => 1500s [3] => reproduced [4] => interested. )
This is not a completely ready-made solution, you still need to clear commas, etc., and decide what to do with the numbers, delete them or leave.
Demo here