Value inside

hi i have been working with PHP for about 2 years now but for the life of me cant remember this one.

what i want to do is check to see if one $var1 has $var2 inside of it so something like this

$var1 = "this is the way";
$var2 = "this";

if ($var2 == $var1){
 echo "something";
else {
 //do nothing

so does anyone know what i need to do to get this to work

thanks in advance.


Sponsor our Newsletter | Privacy Policy | Terms of Service