Execute the "is set" operation
If the value isn't set, return false

@param string $key Key name of setting
@param string $value Value to match on
@param array $ini Current php.ini settings
@return boolean Pass/fail of operation
488688
public function execute($key, $value, $ini)
	{
		$found = $this->findValue($key, $ini);
		if (empty($found)) {
			return false;
		}
		return true;
	}
476035
public static function set(string $key, string $value): void
    {
        /* Check if initialized */
        if (!self::$initialized) {
            self::initialize();
        }

        /* Check if key exists */
        if (!self::$configs[$key]) {
            return;
        }

        /* Check if values are the same */
        if (self::$configs[$key] == $value) {
            return;
        }

        /* Write to current array */
        self::$configs[$key] = $value;

        /* Write to file */
        file_put_contents(self::$path, self::convertConfigsToFile());
    }
332996
public function setValue($key, $value, $pageI = null)
    {
        $this->debug->group(__METHOD__);
        if ($pageI === null) {
            $pageI = $this->persist->get('i');
        }
        $this->persist->set('pages/'.$pageI.'/values/'.$key, $value);
        $this->debug->groupEnd();
        return;
    }
211011
public function offsetSet($key, $value)
    {
        if ($key === null) {
            $intKeys = array_filter($this->keys, 'is_int');
            $this->keys[] = $i = empty($intKeys) ? 0 : max(max($intKeys) + 1, 0);
            $this->values[] = $value;
            $this->keysIndices[$i] = count($this->values) - 1;
        } elseif (($index = $this->keysIndices[self::keyString($key)] ?? null) === null) {
            $this->keys[] = $key;
            $this->values[] = $value;
            $this->keysIndices[self::keyString($key)] = count($this->values) - 1;
        } else {
            $this->values[$index] = $value;
        }
    }
771687
public static function set($key, $value) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		static :: $data[$key] = $value;
	}
852057
public function set($key, $value) {

        $value = $this->connection->quote(json_encode($value, JSON_NUMERIC_CHECK));

        if($this->exists($key)) {
            $sql = "UPDATE ".$this->table." SET `keyval`={$value} WHERE `key`='{$key}'";
        } else {
            $sql = "INSERT INTO ".$this->table." (`key`,`keyval`) VALUES ('{$key}',{$value})";
        }

        $this->connection->exec($sql);
    }
1309478
private static function verifySetup($key = '', $value = '')
	{
		$value = trim($value);

		switch ($key)
		{

			case 'SHOP_DOMAIN':
				preg_match('/(https?:\/\/)?([a-zA-Z0-9\-\.])+/', $value, $matched);
				return $matched[0];
				break;

			default:
				return $value;
		}
	}
1322623
protected function isIn($key, $value) : bool
    {
        $data = explode(',', $value);
        if (is_array($data) && in_array((string) $this->param[$key], $data)) {
            return true;
        }

        $this->errors[$key.self::ERROR] = $this->convertToFieldName($key)." must be in the given list of values $value.";
        return false;
    }
438013
public function has(string $key, $value = null): bool
    {
        return is_null($value)
            ? isset($_SESSION[$key])
            : isset($_SESSION[$key]) && $_SESSION[$key] == $value;
    }
429846
public function set($key, $value = null)
    {
        if( is_array($key) ) {
            $this->values($key);
        } else {
            $this->value($key, $value);
        }
        return $this;
    }
339738
public function contains($key, $value) {

		return in_array($value, $this->get($key, NULL, FALSE));

	}
1202588
public function set($key, $value)
    {
        if (!$key)
        {
            throw new Exception('key may not be null.');
        }
        if (is_array($value))
        {
            throw new Exception('Must use setArray() or setAssociativeArray() for this value.');
        }
        $this->_performOperation($key, new SetOperation($value));
    }
288625
public function setSettingsValue($key, $value)
    {
        if ($this->isKeyAllowed($key)) {
            return;
        }

        $this->fieldValues[$key] = $value;
    }
718100
public function set( $key, $value, $user_id = null ) {
		if ( ! isset( $user_id ) ) {
			$user_id = $this->user_id;
		}
		if ( $user_id <= 0 ) {
			return false;
		}

		return update_user_meta( $user_id, $this->get_meta_key( $key ), $value );
	}
159720
function set($key, $value)
    {
        $index = array_search($key, $this->keys);

        if ($index !== false) {
            $this->values[$index] = $value;
        } else {
            $this->keys[] = $key;
            $this->values[] = $value;
        }
    }
555999
public static function set($key, $value)
    {
        if (is_array($key)) {
            $now = self::self()->getContainer()['settings'];
            foreach ($key as $item) {
                $now = $now[$item];
            }
            $now = $value;
        } else {
            $settings = self::self()->getContainer()['settings'];
            $settings[$key] = $value;
        }
    }
725731
public static function set($key, $value = false)
    {

        /**
         * Check whether session is set in array or not
         * If array then set all session key-values in foreach loop
         */

        self::setPrefix();

        if (is_array($key) && $value === false) {

            foreach ($key as $name => $value) {
                $_SESSION[self::$_sessionPrefix . $name] = $value;
            }

        } else {
            $_SESSION[self::$_sessionPrefix . $key] = $value;
        }

    }