|
@@ 849-851 (lines=3) @@
|
| 846 |
|
elseif (preg_match('#A\) (.*)#',$line,$matches)) { |
| 847 |
|
$result['icao'] = $matches[1]; |
| 848 |
|
} |
| 849 |
|
elseif (preg_match('#B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#',$line,$matches)) { |
| 850 |
|
$result['date_begin'] = $matches[1].'/'.$matches[2].'/'.$matches[3].' '.$matches[4].':'.$matches[5]; |
| 851 |
|
} |
| 852 |
|
elseif (preg_match('#C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#',$line,$matches)) { |
| 853 |
|
$result['date_finish'] = $matches[1].'/'.$matches[2].'/'.$matches[3].' '.$matches[4].':'.$matches[5]; |
| 854 |
|
} |
|
@@ 852-854 (lines=3) @@
|
| 849 |
|
elseif (preg_match('#B\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})#',$line,$matches)) { |
| 850 |
|
$result['date_begin'] = $matches[1].'/'.$matches[2].'/'.$matches[3].' '.$matches[4].':'.$matches[5]; |
| 851 |
|
} |
| 852 |
|
elseif (preg_match('#C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})$#',$line,$matches)) { |
| 853 |
|
$result['date_finish'] = $matches[1].'/'.$matches[2].'/'.$matches[3].' '.$matches[4].':'.$matches[5]; |
| 854 |
|
} |
| 855 |
|
elseif (preg_match('#C\) ([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}) (EST|PERM)$#',$line,$matches)) { |
| 856 |
|
$result['date_finish'] = $matches[1].'/'.$matches[2].'/'.$matches[3].' '.$matches[4].':'.$matches[5]; |
| 857 |
|
if ($matches[6] == 'EST') $result['estimated'] = true; |