src/PaymentSlipData.php
protected function modulo10($number)
    {
        $next = 0;
        for ($i=0; $i < strlen($number); $i++) {
            $next = $this->moduloTable[($next + intval(substr($number, $i, 1))) % 10];
        }

        return (10 - $next) % 10;
    }
protected function modulo10($number)
    {
        $next = 0;
        for ($i=0; $i < strlen($number); $i++) {
            $next = $this->moduloTable[($next + intval(substr($number, $i, 1))) % 10];
        }

        return (10 - $next) % 10;
    }
protected function modulo10 ( $ number ) { $ next = 0 ; for ( $ i = 0 ; $ i < strlen ( $ number ) ; $ i ++ ) { $ next = $ this -> moduloTable [ ( $ next + intval ( substr ( $ number , $ i , 1 ) ) ) % 10 ] ; } return ( 10 - $ next ) % 10 ; }
Creates Modulo10 recursive check digit

@copyright As found on http://www.developers-guide.net/forums/5431,modulo10-rekursiv (thanks, dude!)
@param string $number Number to create recursive check digit off.
@return int Recursive check digit.
Creates Modulo10 recursive check digit