| | |
| | | return [ |
| | | 'num' => $line[2] . str_pad($id, 3, '0', STR_PAD_LEFT), |
| | | 'type' => $line[3], |
| | | 'low' => isset($line[4]) ? $line[4] : $defaultLow, |
| | | 'low' => (int)(isset($line[4]) ? $line[4] : $defaultLow), |
| | | ]; |
| | | } |
| | | } |
| | | return []; |
| | | return [ |
| | | 'num' => '??'.$id, |
| | | 'type' => '?', |
| | | 'low' => NULL, |
| | | ]; |
| | | } |
| | | function numToTypeT($id) { |
| | | if((int)$id == 250) { |
| | | $id = 410; |
| | | } |
| | | $data = <<<'END' |
| | | 101 107 HW E1 0 |
| | | 108 113 RW E1 0 |
| | |
| | | 314 322 RF GT8S 0 |
| | | 323 323 RF GT8N 1 |
| | | 324 324 RF GT8S 0 |
| | | 325 328 RF GT8N 1 |
| | | 325 329 RF GT8N 1 |
| | | 401 440 HL EU8N 1 |
| | | 451 456 HK N8C-NF 0 |
| | | 457 461 HK N8S-NF 1 |