Solar_Filter_ValidateNotInList::validateNotInList()

public bool Solar_Filter_ValidateNotInList::validateNotInList ( mixed $value , array $array )

Validates that a value is not in a list of disallowed values.

Parameters

  • (mixed) $value: The value to validate.

  • (array) $array: An array of disallowed values.

Returns

  • (bool) True if valid, false if not.

Description

Validates that a value is not in a list of disallowed values.

Strict checking is enforced, so a string "1" is not the same as an integer 1. This helps to avoid matching 0 and empty, etc.



Local