Skip to content
Advertisement

Tag: whitelist

PHP check if array contains any key other than some whitelisted

I would like to check all keys of a global GET array and do something, if it contains keys, other than some whitelisted ones from an array. Let’s say the current url is: Just for better visualization: These GET parameters are all available in the global GET variable which looks something like this: The keys I accept and want to

Advertisement