Checks if a field matches the value of another field.
boolean Core_Valid::matches( array $array , string $field , string $match )
参数列表
参数 类型 描述 默认值 $arrayarrayArray of values $fieldstringField name $matchstringField name to match
boolean public static function matches($array, $field, $match)
{
return ($array[$field] === $array[$match]);
}