You are here

static function SuperGlobalVariables::equal in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 9.1.x src/lib/Cleantalk/Common/Variables/SuperGlobalVariables.php \Cleantalk\Common\Variables\SuperGlobalVariables::equal()

* Checks if variable equal to $param * *

Parameters

string $var Variable to compare: * @param string $param Param to compare * * @return bool|int

File

src/lib/Cleantalk/Common/Variables/SuperGlobalVariables.php, line 78

Class

SuperGlobalVariables
Class ServerVariables Safety handler for ${_SOMETHING}

Namespace

Cleantalk\Common\Variables

Code

static function equal($var, $param) {
  return self::get($var) == $param;
}