foreach (1..9)) { $sum += (substr($account, $_-1, 1) * $_); } [download]
In reply to Re: Elfproef (Dutch bank account check) by petral in thread Elfproef (Dutch bank account check) by Treenaks