Source for file sample_multiple.php
Documentation is available at sample_multiple.php
//include_once "Validate/FR.php";
require_once "Validate.php";
test(Validate::creditCard('6762195515061813'), true);
test(Validate::creditCard('6762195515061814'), false);
function rib($aCodeBanque, $aCodeGuichet='', $aNoCompte='', $aKey='')
function number($number, $decimal = null, $dec_prec = null, $min = null, $max = null)
'amount'=> '13234,344343',
'name' => 'foo@example.com',
'codeguichet' => '00081',
'nocompte' => '00923458141C',
'codeguichet' => '12345',
'nocompte' => '12345678901',
'cc' => '6762195515061813',
'cc2' => '6762195515061814',
'mail' => 'foo@example.com',
'hissiret' => '441 751 245 00016',
'mystring' => 'ABCDEabcde',
'iban' => 'CH10002300A1023502601',
'amount'=> array ('type'=> 'number','decimal'=> ',.','dec_prec'=>null ,'min'=>1 ,'max'=>32000 ),
'name' => array ('type'=> 'email','check_domain'=>false ),
'rib' => array ('type'=> 'FR_rib'),
'rib2' => array ('type'=> 'FR_rib'),
'cc' => array ('type'=> 'Finance_CreditCard_number'),
'cc2' => array ('type'=> 'Finance_CreditCard_number'),
'mail' => array ('type'=> 'email'),
'hissiret' => array ('type'=> 'FR_siret'),
'mystring' => array ('type'=> 'string',array ('format'=> VALIDATE_ALPHA, 'min_length'=>3 )),
'iban' => array ('type'=> 'Finance_iban'),
'cep' => array ('type'=> 'ptBR_postalcode')
Documentation generated on Mon, 11 Mar 2019 15:46:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|