$string = "484.559.27.94";
$match = "559.27.";
if (stristr($string, "$match")){
echo "MATCH";
} else {
echo "Not found";
}
This would output "MATCH".
I want the to start the search at the begining of $string, not just find out if the string contains $match... is this possible? What function would work for me? So that it will output "Not found", because it would start at 484 and see that it is not 559.... ect.