PHP code example of sumocoders / validation
1. Go to this page and download the library: Download sumocoders/validation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sumocoders / validation example snippets
eate validator instance
$ibanValidator = new SumoCoders\Validation\IbanValidator();
// Sanitize iban code input:
$validIbanFormat = $ibanValidator->sanitize($input);
// Validate iban code:
if ($ibanValidator->validate($validIbanFormat)) {
// It's a valid iban code!
}