phpCopy<?php $mystring = "This is a php program."; $search = "a"; if(preg_match("/{$search}/i", $mystring)) { echo "True"; } else { echo("False"); } ?>