Skip to content

Instantly share code, notes, and snippets.

@andreCatita
andreCatita / iso7064_mod11_2.php
Last active August 29, 2022 09:25
PHP Example of ISO 7064 Mod 11,2 or Modulus 11,2 of the norm ISO/IEC 7064. Is is not very used, that's why I am sharing.
<?php
class Iso7064mod112 {
public $code;
public function encode($code) {
$this->code = $code;
$c = $this->computeCheck($this->code);
if ($c == 10) {