I have a pretty large text file in which I'm trying to exclude any characters that arent numbers, letters or periods. Basically I want anything that's an odd character to be deleted or shown to me so I can delete it(?'s, /'s, etc.). I found the script below that might be a beginning. I'm pretty new to PHP (this is my second time around at using it) so please go easy on me.
$search_term = '?'
$array = file('c:/php/list.php'); //list.php is my text file
foreach ($array as $key => $value)
if (strpos($value, $search_term) !== False)
$line = $key + 1;
echo $search_term . ' was found on line #' . $line . '<br>';