Previous Page
locale()

Solar_Filter_ValidateNotInList
validateNotInList()

Next Class
Solar_Filter_ValidateNotZero

validateNotInList()

public bool 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.