Question : Find number in a string? preg_replace(“/[^0-9]/”,””,$string); Return string filter_var($str, FILTER_SANITIZE_NUMBER_INT); preg_match_all(‘!\d+!’, $str, $matches); Return an array strpos() : Find the postion in string Example : echo strpos(“I love php, I love php too!”,”php”); Output: 7 strpos() : Finds the position of the first occurrence of a string inside another string (case-sensitive) stripos() : Finds the position…