Please login to start chat

ICT Solutions 2019-01-28 12:15:54
Category : php tutorials

Matching with function in php


<?php
$string = 'I am Thet Naing Win and who are you?';
$find = '/000/';

function Match($find, $string){
  if(preg_match($find, $string)){
   return true;
  }else{
   return false;
  }
}

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

Comments:

No comment to show.

Available Services
Download Android Application