Say I have two variables $var and $var2 and I want to find out if $var is a substring of $var2, how do I go about doing this?
There are a few string functions available for things like that.
For example, there is [man]strpos/man or [man]substr_count/man