Php To Compare And Return A Variable In A Querystring
I need a bit of simple PHP code that can return a specified variable if any one of three variables is contained within a query string. Probably easier to explain like this: if {que
Solution 1:
functionevaluateThis($var1,$var2,$var3) {
if((strpos($string,$var1) !== false) || (strpos($string,$var1) !== false) || (strpos($string,$var1) !== false)) {
return$var1;
}
else { return'string not found'; }
}
Is this what you mean
Post a Comment for "Php To Compare And Return A Variable In A Querystring"