×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Peter Wendel
Added: May 14, 2015 3:53 PM
Views: 1854
Tags: no tags
  1. $check = false;
  2.         preg_match($pattern, $string, $matches);
  3.         if($matches[0] == $string){
  4.             $check = true;
  5.         }