Why not use explode to get an array from the list:<?php
$explicit = file("list.txt"); //swear words, made x10 safe! :)
$badchars=array(
"\r",
"\n");
$explicit = str_replace($badchars,"\n",$explicit)
$explicit = explode("\n", $explicit);
echo '<pre>';
print_r($explicit);
echo '</pre>'...