I am trying to do a bunch of if and elseif based on part of a variable.
All the variables I want to process in the same manner contain the same string:
submit_xxx
submit_yyy
submit_zzz etc..
So I would like to do something like this:
if ($_GET['var'] OPERATOR "submit_") {....
Does such an operator exists? Or do I have to do use a "==" for each variable I want to process? I guess what I am looking for is an operator that means "contain".
That will catch all strings with submit_ in them. Since I'm not sure how your getting $var I didn't include any code. Have no idea if your looping through and array or testing variables hard coded.