String matches: /p.p/ : Date Time « Development « PHP






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

1.date: m/d/y G:i:s e
2.Save result of getdate() to an array
3.date: jS \o\f F Y, \a\\t g:ia \i\\n e
4.Call system date function and get result
5.String time
6. December 16th 2002, 09:17AM.
7.Today's Date
8.Get date and time