If my str2 (variable) is java. still i get output :-value present. i want to search only complete string not sub string. Is their any function which cheks for only complete string??
$str2 ="javascript";
$str1 ="abc def xyz in javascript ";
if(stripos($str1,$str2) !== false) {
echo "value present";
}else{
echo "noooo";
}