 CakePHP Cookbook 2.x
IPv4 or IPv6 address has been submitted. Accepts as option ‘both’ (default), ‘IPv4’ or ‘IPv6’. public $validate = array( 'clientip' => array( 'rule' => array('ip', 'IPv4'), // or 'IPv6' or 'both' // Validates both IPv4 and IPv6 Validation::ip($someAddress, 'IPv4'); // Validates IPv4 Addresses only Validation::ip($someAddress, 'IPv6'); // Validates IPv6 Addresses only Validation::uuid()0 码力 | 1096 页 | 958.62 KB | 1 年前3 CakePHP Cookbook 2.x
IPv4 or IPv6 address has been submitted. Accepts as option ‘both’ (default), ‘IPv4’ or ‘IPv6’. public $validate = array( 'clientip' => array( 'rule' => array('ip', 'IPv4'), // or 'IPv6' or 'both' // Validates both IPv4 and IPv6 Validation::ip($someAddress, 'IPv4'); // Validates IPv4 Addresses only Validation::ip($someAddress, 'IPv6'); // Validates IPv6 Addresses only Validation::uuid()0 码力 | 1096 页 | 958.62 KB | 1 年前3
 CakePHP Cookbook 2.x
valid IPv4 or IPv6 address has been submitted. Accepts as option ‘both’ (default), ‘IPv4’ or ‘IPv6’. public $validate = array( 'clientip' => array( 'rule' => array('ip', 'IPv4'), // or 'IPv6' or 'both' ress); // Validates both IPv4 and IPv6 Validation::ip($someAddress, 'IPv4'); // Validates IPv4 Addresses only Validation::ip($someAddress, 'IPv6'); // Validates IPv6 Addresses only Validation::uuid()0 码力 | 820 页 | 2.52 MB | 1 年前3 CakePHP Cookbook 2.x
valid IPv4 or IPv6 address has been submitted. Accepts as option ‘both’ (default), ‘IPv4’ or ‘IPv6’. public $validate = array( 'clientip' => array( 'rule' => array('ip', 'IPv4'), // or 'IPv6' or 'both' ress); // Validates both IPv4 and IPv6 Validation::ip($someAddress, 'IPv4'); // Validates IPv4 Addresses only Validation::ip($someAddress, 'IPv6'); // Validates IPv6 Addresses only Validation::uuid()0 码力 | 820 页 | 2.52 MB | 1 年前3
共 2 条
- 1














