in this post im share with you to How to chech specific word is present in string or not in php :
using strpos() function in php
check bellow example :
<?php
$string = "Please Select a Date";
$strstatus = strpos($string,'Select');
if($strstatus){
echo "select - string is present";
}else{
echo "select string is not present";
}
output : select - string is present
0 Comments