|
Previous Page |
Solar_Filter_ValidatePregMatch |
Next Class |
validatePregMatch()
public
bool
validatePregMatch (
mixed $value,
string $expr
)
Validates the value against a regular expression.
Parameters
- (mixed)
$value: The value to validate. - (string)
$expr: The regular expression to validate against.
Returns
- (bool) True if the value matches the expression, false if not.
Description
Validates the value against a regular expression.
Uses preg_match() to compare the value against the given regular epxression.