RE: preg_match() help!!!
code: $comment = $_POST['comment'];
$check_for = array('/test/', '/hello/');
foreach ($check_for as $dt_sucks)
{
if(preg_match($dt_sucks, $comment))
echo "hello";
else
echo "nope";
}
The previous sentence is false. The following sentence is true.
|