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 {querystring} contains {var1} or {var2} or {var3} return {var1}
This is expands on the following question: Creating a canonical with PHP
I need to add said code to one of the variables specified in function params
, in the linked question.
Is this what you mean
If you want to analyse the query string of the current request:
else:
.