选择语言 :

 Core_Valid::matches

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
File: ./core/classes/valid.class.php
public static function matches($array, $field, $match)
{
    return ($array[$field] === $array[$match]);
}