Friday, September 21, 2012
5:35 PM

Find string with in another string in PHP

By using Below Code it is possible to found that whether a string has searching String

<?php
 $str = "Hi Me Find";

 $find = "Me"; 
 if(sizeof(explode($find,$str))>1)
 {
   echo "Me Found";
 }
 else
 {
    echo "Me Not Found"; 
 } 
?>

0 comments:

Post a Comment