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

String matches: /p.p/

     $string = "PHP is great!";
     $pattern = "/P.P/";
     if(preg_match($pattern, $string))
          print("Found a match!");

Related examples in the same category m/d/y G:i:s e
2.Save result of getdate() to an array 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