This repository was archived by the owner on Mar 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
respectsAccountPattern
elcapo edited this page Oct 16, 2014
·
1 revision
respectsAccountPattern verifies that three strings respect the expected pattern for an Spanish bank account number.
/* MySQL */
SELECT respectsAccountPattern( '1234', '1234', '1234567890' );
/* Returns 1 */
SELECT respectsAccountPattern( '1234', 'AAAA', '1234567890' );
/* Returns 0 *//* JavaScript */
var respects = respectsAccountPattern( '1234', '1234', '1234567890' );
/* respects = 1 */
var respects = respectsAccountPattern( '1234', 'AAAA', '1234567890' );
/* respects = 0 *//* PHP */
$respects = respectsAccountPattern( '1234', '1234', '1234567890' );
/* $respects = 1 */
$respects = respectsAccountPattern( '1234', 'AAAA', '1234567890' );
/* $respects = 0 */-
1- If the strings received as parameters, matched the expected pattern. -
0- Otherwise.
This function is part of the [Spanish Bank Accounts](Spanish Bank Accounts) package.
Go back home!
SEPA validations
- [International Bank Account Numbers (IBAN)](International Bank Account Numbers (IBAN))
Spanish validations
- NIF, NIE & CIF
- [Spanish Bank Accounts](Spanish Bank Accounts)
Helpers
- [Common functions](Common functions)