get_rules ($group)
Parameters:
  • $group (string) – The name of the validation group to get the rules for. They must have been stored in the config file
Returns:

Array of validation rules as stored in the config file. If no rules are found for the group an empty array is returned

Return type:

array

Fetches the validation rules for a validation group. Always returns an array, if the $group cannot be matched an empty array will be provided. The $group value is the value used for the ruleset name (eg "signup") in Creating Sets of Rules.