Previous Page
locale()

Solar_Filter_ValidateLocaleCode
validateLocaleCode()

Next Class
Solar_Filter_ValidateMax

validateLocaleCode()

public bool validateLocaleCode ( mixed $value )

Validates that the value is a locale code.

Parameters

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

Returns

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

Description

Validates that the value is a locale code.

The format is two lower-case letters, an underscore, and two upper-case letters.