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