Skip to content

Instantly share code, notes, and snippets.

@andreCatita
andreCatita / iso7064_mod11_2.php
Last active Dec 18, 2015
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.
View iso7064_mod11_2.php
<?php
class Iso7064mod112 {
public $code;
public function encode($code) {
$this->code = $code;
$c = $this->computeCheck($this->code);
if ($c == 10) {
@andreCatita
andreCatita / gist:5216677
Last active Dec 15, 2015
The reason for this snippet, is to have gettext always combined with sprintf in a easy accessible way.
View gist:5216677
<?php
/*************
* gettext aliases
* Singular, Plural integrated with sprintf
* http://andrecatita.com
**********************/
function _t() {
$args = func_get_args();
You can’t perform that action at this time.