Hello there,
I can't figure out for the life of me, to get preg_match() to work with arrays for example (this is not my real code, just something im exampling with off the top of my head)
code:
$comment = $_POST['comment'];
$check_for = array('/test/', '/hello/');
if(preg_match($check_for, $comment)) {
echo "hello";
} else {
echo "nope";
}