String matches: /p.p/ : Date Time « Development « PHP
- PHP
- Development
- Date Time
String matches: /p.p/
<?php
$string = "PHP is great!";
$pattern = "/P.P/";
if(preg_match($pattern, $string))
print("Found a match!");
?>
Related examples in the same category