Checking if exists... special_code formatted: 07 special_code OK: 07 code[01] -> sprintf -> 01 code[02] -> sprintf -> 02 code[03] -> sprintf -> 03 code[04] -> sprintf -> 04 code[05] -> sprintf -> 05 code[06] -> sprintf -> 06 Final code array: Array ( [0] => 01 [1] => 02 [2] => 03 [3] => 04 [4] => 05 [5] => 06 ) open_draw_code: 01,02,03,04,05,06 special_code: 07 === sprintf 测试 === sprintf('%02d', ''): '00' sprintf('%02d', null): '00' sprintf('%02d', 0): '00' sprintf('%02d', 'abc'): '00' sprintf('%02d', false): '00' sprintf('%02d', true): '01' sprintf('%02d', '07'): '07' sprintf('%02d', 7): '07'