function iban_get_branch_part($iban) { $iban = iban_to_machine_format($iban); $country = iban_get_country_part($iban); $start = iban_country_get_branchid_start_offset($country); $stop = iban_country_get_branchid_stop_offset($country); if ($start != '' && $stop != '') { $bban = iban_get_bban_part($iban); return substr($bban, $start, $stop - $start + 1); } return ''; }
public function BranchIDStartOffset() { return iban_country_get_branchid_start_offset($this->code); }