Oh, that is an easy one. Here you go:
<?php
$variable = 'here it < is';
if(ereg("<", $variable)){ //Code for older ereg() function
print "Yes! '<' was found in \$variable";
}
else {
print "Sorry, '<' was not found in \$variable";
}
if(preg_match("/</", $variable)){ //Code for newer preg_match() function
print "Yes! '<' was found in \$variable";
}
else {
print "Sorry, '<' was not found in \$variable";
}
?>
And that's it!
Hebrews 11:6
And without faith it is impossible to please God, because anyone who comes to him must believe that he exists and that he rewards those who earnestly seek him.