Skip to content

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.

Usage

/* 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 */

Return values

  • 1 - If the strings received as parameters, matched the expected pattern.
  • 0 - Otherwise.

Category

This function is part of the [Spanish Bank Accounts](Spanish Bank Accounts) package.

SEPA validations

  • [International Bank Account Numbers (IBAN)](International Bank Account Numbers (IBAN))

Spanish validations

Helpers

  • [Common functions](Common functions)
Clone this wiki locally