$main_string_new="a@gmail.com,yug@gmail.com,a@gmail.com";
if(stristr($main_string_new,"a@gmail.com,")){
echo "String contains a Email id 'a@gmail.com' ";
}
else {
echo "String does not contains a email id 'a@gmail.com' ";
}
Searching for a email or word inside a text string
Posted by
Yugant Khokhar
on Monday, May 10, 2010
Labels:
search same email is in a string
0 comments:
Post a Comment