$str = "Visit QuickRef";
$regex = "#quickref#i";
// Output: 1
echo preg\_match($regex, $str);
Comments