$string = "asdf asd item asdinwsdf";
if (strstr($string, "item")){echo "Yes";} else {echo "No";}
OUTPUTS: Yes
$string = "ASDF ASD ITEM ASDINWSDF";
if (strstr($string, "item")){echo "Yes";} else {echo "No";}
OUTPUTS: No
========================================
Is there a way to make strstr not case sensitive??
Or an alternative to using strstr?
Both of the above outputs I want to output "Yes".
Thanks for the help in advance! 😉