lib/blobfolio/common/data.php
public static function cc_exp_years(int $length=10) {
		if ($length < 1) {
			$length = 10;
		}

		$years = array();
		for ($x = 0; $x < $length; ++$x) {
			$year = (int) (\date('Y') + $x);
			$years[$year] = $year;
		}

		return $years;
	}
public static function cc_exp_years(int $length=10) {
		if ($length < 1) {
			$length = 10;
		}

		$years = array();
		for ($x = 0; $x < $length; ++$x) {
			$year = (int) (\date('Y') + $x);
			$years[$year] = $year;
		}

		return $years;
	}
public static function cc_exp_years ( int $ length = 10 ) { if ( $ length < 1 ) { $ length = 10 ; } $ years = array ( ) ; for ( $ x = 0 ; $ x < $ length ; ++ $ x ) { $ year = ( int ) ( \ date ( 'Y' ) + $ x ) ; $ years [ $ year ] = $ year ; } return $ years ; }
Generate Credit Card Expiration Years

@param int $length Number of years.
@return array Years.
Generate Credit Card Expiration Years