Previous Page
locale()

Solar_Filter_ValidateCtype
validateCtype()

Next Class
Solar_Filter_ValidateEmail

validateCtype()

public bool validateCtype ( mixed $value, string $type )

Validates the value against a ctype function.

Parameters

  • (mixed) $value: The value to validate.
  • (string) $type: The ctype to validate against: 'alnum', 'alpha', 'digit', etc.

Returns

  • (bool) True if the value matches the ctype, false if not.

Description

Validates the value against a ctype function.