Sunday, April 2, 2017

Matching In PHP


<?php

$string = 'Hi How are you?. I am Thet Naing Win. Nice to meet you!';

$find = '/000/';

if (preg_match($find, $string)){
  echo 'Match Found!';
}else{
  echo 'Match Not Found!';
}

?>

No comments:

Post a Comment