Contact: aviboots(AT)netvision.net.il
39,948 questions
51,890 answers
573 users
$s = "How to extract all digits from string in PHP Collective Solver"; $search = "CollectiveSolver"; $arr = explode(" ", $s); foreach ($arr as $word) { if (strpos($search, $word) !== false) echo $word . "\n"; } /* run: Collective Solver */