...
Note | ||
---|---|---|
| ||
It's important to note that PHP has a number of language constructs that look like functions but are not. You can not use language constructs as rules. |
Custom Rules
...
Formatting
There are two attributes that handle data formatting during validation. They are:
- pre_format
- post_format
As their names suggest they allow formatting of data before, or after, validation. These callbacks work just like the callbacks we've seen for rule validation.