fork download
  1. <?php
  2. $data = "
  3. [ATC_Aircraft.0]
  4. ActiveFlightPlan=True
  5. RequestedFlightPlan=True
  6. AcState=ACSTATE_REQUEST_TAXI_CLEARANCE_OUT_VFR_ATIS
  7. Waypoint.0=, EGBB, , EGBB, A, N52� 27.23', W1� 44.88', +000315.50, , , , , , NONE, 0, 0, -1, 0, 0,
  8. Waypoint.1=, , , TIMECLIMB, U, N52� 25.32', W1� 42.75', +000915.50, , , , , , NONE, 0, 0, -1, 0, 0,
  9. Waypoint.2=, , , TIMECRUIS, U, N42� 45.71', W33� 37.27', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,
  10. Waypoint.3=, , , TIMEDSCNT, U, N35� 20.99', W45� 15.71', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,
  11. Waypoint.4=, , , TIMEAPPROACH, U, N18� 0.89', W63� 17.52', +002050.00, , , , , , NONE, 0, 0, -1, 0, 0,
  12. Waypoint.5=, TNCM, , TNCM, A, N18� 2.51', W63� 6.79', +000007.21, , , , , , NONE, 0, 0, -1, 0, 0,
  13. NumberofWaypoints=6
  14. ClearanceFlags=882
  15. CtCur=CLEARANCE_NONE
  16. WaypointNext=2
  17. AltCleared=-1
  18. HdgAssigned=-1
  19. SquawkAssigned=4608
  20. LandingSequence=LANDING_NONE
  21. DepartureRequest=DEPARTURE_VFR_REQUEST_NONE
  22. ParkingRequest=PARKING_NAME_NONE
  23. ParkingTypeRequest=PARKING_TYPE_NONE
  24. PatternLeg=PATTERN_LEG_NONE
  25. ApproachIndex=-1
  26. ApproachTransitionIndex=-1
  27. ApproachRequestIndex=-1
  28. ApproachTransitionRequestIndex=-1
  29. RunwayIndex=-1
  30. RunwayRequestIndex=-1
  31. ParkingIndex=-1
  32. FlightFollowing=FLIGHT_FOLLOWING_NO
  33. AirspaceTransition=AIRSPACE_TRANSITION_NONE
  34. BVAirspaceTransition=BV_TYPE_NONE
  35. BVAirspaceTransitionReq=BV_TYPE_NONE
  36. TakeoffSequence=TAKEOFF_SEQUENCE_NONE
  37. LandingSequenceNumber=-1
  38. TaxiRouteCurrent=-1
  39. CruisingAltitude=36500
  40. RequestedCruisingAltitude=-1
  41. ExpectedAltitude=-1
  42. AircraftSignature=1,0
  43.  
  44. [ATC_ActiveFlightPlan.0]
  45. title=Birmingham to Princess Juliana Intl
  46. description=Birmingham to Princess Juliana Intl
  47. type=VFR
  48. routetype=0
  49. cruising_altitude=36500
  50. departure_id=EGBB, N52� 27.23', W1� 44.88', +000315.50
  51. departure_position=PARKING 23 PARKING NONE
  52. destination_id=TNCM, N18� 2.51', W63� 6.79', +000007.21
  53. departure_name=Birmingham
  54. destination_name=Princess Juliana Intl
  55. waypoint.0=, EGBB, , EGBB, A, N52� 27.23', W1� 44.88', +000315.50, , , , , , NONE, 0, 0, -1, 0, 0,
  56. waypoint.1=, , , TIMECLIMB, U, N52� 25.32', W1� 42.75', +000915.50, , , , , , NONE, 0, 0, -1, 0, 0,
  57. waypoint.2=, , , TIMECRUIS, U, N42� 45.71', W33� 37.27', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,
  58. waypoint.3=, , , TIMEDSCNT, U, N35� 20.99', W45� 15.71', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,
  59. waypoint.4=, , , TIMEAPPROACH, U, N18� 0.89', W63� 17.52', +002050.00, , , , , , NONE, 0, 0, -1, 0, 0,
  60. waypoint.5=, TNCM, , TNCM, A, N18� 2.51', W63� 6.79', +000007.21, , , , , , NONE, 0, 0, -1, 0, 0,
  61.  
  62. [ATC_RequestedFlightPlan.0]
  63. title=Birmingham to Princess Juliana Intl
  64. description=Birmingham to Princess Juliana Intl
  65. type=IFR
  66. routetype=3
  67. cruising_altitude=38000
  68. departure_id=EGBB, N52� 27.23', W1� 44.88', +000315.50
  69. departure_position=PARKING 23 PARKING NONE
  70. destination_id=TNCM, N18� 2.51', W63� 6.79', +000007.21
  71. departure_name=Birmingham
  72. destination_name=Princess Juliana Intl
  73. waypoint.0=, EGBB, , EGBB, A, N52� 27.23', W1� 44.88', +000315.50, , , , , , NONE, 0, 0, -1, 0, 0,
  74. waypoint.1=EG, 2IBIR, EGBB, 2IBIR, I, N52� 25.13', W1� 42.60', +000800.00, , LUXT15, , , 15, NONE, 0, 0, -1, 0, 0,
  75. waypoint.2=EG, 4IBIR, EGBB, 4IBIR, I, N52� 23.15', W1� 41.66', +001200.00, , LUXT15, , , 15, NONE, 0, 0, -1, 0, 0,
  76. waypoint.3=EG, LUXTO, , LUXTO, I, N52� 8.51', W2� 3.64', +005150.00, , LUXT15, , , 15, NONE, 0, 0, -1, 6000, 0, A
  77. waypoint.4=EI, LUVIS, , LUVIS, I, N51� 23.40', W9� 28.52', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  78. waypoint.5=EG, H4916, , H4916, I, N49� 30.00', W16� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  79. waypoint.6=EG, H4722, , H4722, I, N47� 30.00', W22� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  80. waypoint.7=EG, H4528, , H4528, I, N45� 30.00', W28� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  81. waypoint.8=LP, H4333, , H4333, I, N43� 30.00', W33� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  82. waypoint.9=, , , TIMECRUIS, U, N42� 50.86', W33� 55.15', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  83. waypoint.10=LP, H4037, , H4037, I, N40� 30.00', W37� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  84. waypoint.11=KZ, H3841, , H3841, I, N38� 30.00', W41� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  85. waypoint.12=KZ, 3645N, , 3645N, I, N36� 0.00', W45� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  86. waypoint.13=, , , TIMEDSCNT, U, N35� 25.03', W45� 43.44', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  87. waypoint.14=KZ, H3348, , H3348, I, N33� 30.00', W48� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  88. waypoint.15=KZ, H3052, , H3052, I, N30� 30.00', W52� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  89. waypoint.16=KZ, H2755, , H2755, I, N27� 30.00', W55� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  90. waypoint.17=KZ, H2458, , H2458, I, N24� 30.00', W58� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  91. waypoint.18=KZ, H2161, , H2161, I, N21� 30.00', W61� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  92. waypoint.19=, 0008, , AFirst, U, N18� 14.61', W63� 23.30', +005000.00, , , ULUBA1, , 10, NONE, 0, 0, -1, 0, 0,
  93. waypoint.20=TN, ULUBA, TNCM, ULUBA, I, N18� 0.89', W63� 17.49', +002050.00, , , ULUBA1, , 10, NONE, 0, 0, -1, 0, 0,
  94. waypoint.21=, TNCM, , TNCM, A, N18� 2.51', W63� 6.79', +000000.00, , , , , , NONE, 0, 0, -1, 0, 0,
  95.  
  96. [ATC_AircraftManager]
  97. NumberofAircraft=1
  98.  
  99. [ATC_MessageSystem]
  100. FrequencyNodes=0";
  101.  
  102. echo(preg_replace("/\[ATC_ActiveFlightPlan\.0\].*?(\r?\n){2}/s","",$data));
  103. ?>
Success #stdin #stdout 0.03s 25456KB
stdin
Standard input is empty
stdout
[ATC_Aircraft.0]
ActiveFlightPlan=True
RequestedFlightPlan=True
AcState=ACSTATE_REQUEST_TAXI_CLEARANCE_OUT_VFR_ATIS
Waypoint.0=, EGBB, , EGBB, A, N52� 27.23', W1� 44.88', +000315.50, , , , , , NONE, 0, 0, -1, 0, 0,  
Waypoint.1=, , , TIMECLIMB, U, N52� 25.32', W1� 42.75', +000915.50, , , , , , NONE, 0, 0, -1, 0, 0,  
Waypoint.2=, , , TIMECRUIS, U, N42� 45.71', W33� 37.27', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,  
Waypoint.3=, , , TIMEDSCNT, U, N35� 20.99', W45� 15.71', +036500.00, , , , , , NONE, 0, 0, -1, 0, 0,  
Waypoint.4=, , , TIMEAPPROACH, U, N18� 0.89', W63� 17.52', +002050.00, , , , , , NONE, 0, 0, -1, 0, 0,  
Waypoint.5=, TNCM, , TNCM, A, N18� 2.51', W63� 6.79', +000007.21, , , , , , NONE, 0, 0, -1, 0, 0,  
NumberofWaypoints=6
ClearanceFlags=882
CtCur=CLEARANCE_NONE
WaypointNext=2
AltCleared=-1
HdgAssigned=-1
SquawkAssigned=4608
LandingSequence=LANDING_NONE
DepartureRequest=DEPARTURE_VFR_REQUEST_NONE
ParkingRequest=PARKING_NAME_NONE
ParkingTypeRequest=PARKING_TYPE_NONE
PatternLeg=PATTERN_LEG_NONE
ApproachIndex=-1
ApproachTransitionIndex=-1
ApproachRequestIndex=-1
ApproachTransitionRequestIndex=-1
RunwayIndex=-1
RunwayRequestIndex=-1
ParkingIndex=-1
FlightFollowing=FLIGHT_FOLLOWING_NO
AirspaceTransition=AIRSPACE_TRANSITION_NONE
BVAirspaceTransition=BV_TYPE_NONE
BVAirspaceTransitionReq=BV_TYPE_NONE
TakeoffSequence=TAKEOFF_SEQUENCE_NONE
LandingSequenceNumber=-1
TaxiRouteCurrent=-1
CruisingAltitude=36500
RequestedCruisingAltitude=-1
ExpectedAltitude=-1
AircraftSignature=1,0

[ATC_RequestedFlightPlan.0]
title=Birmingham to Princess Juliana Intl
description=Birmingham to Princess Juliana Intl
type=IFR
routetype=3
cruising_altitude=38000
departure_id=EGBB, N52� 27.23', W1� 44.88', +000315.50
departure_position=PARKING 23 PARKING NONE
destination_id=TNCM, N18� 2.51', W63� 6.79', +000007.21
departure_name=Birmingham
destination_name=Princess Juliana Intl
waypoint.0=, EGBB, , EGBB, A, N52� 27.23', W1� 44.88', +000315.50, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.1=EG, 2IBIR, EGBB, 2IBIR, I, N52� 25.13', W1� 42.60', +000800.00, , LUXT15, , , 15, NONE, 0, 0, -1, 0, 0,  
waypoint.2=EG, 4IBIR, EGBB, 4IBIR, I, N52� 23.15', W1� 41.66', +001200.00, , LUXT15, , , 15, NONE, 0, 0, -1, 0, 0,  
waypoint.3=EG, LUXTO, , LUXTO, I, N52� 8.51', W2� 3.64', +005150.00, , LUXT15, , , 15, NONE, 0, 0, -1, 6000, 0, A
waypoint.4=EI, LUVIS, , LUVIS, I, N51� 23.40', W9� 28.52', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.5=EG, H4916, , H4916, I, N49� 30.00', W16� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.6=EG, H4722, , H4722, I, N47� 30.00', W22� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.7=EG, H4528, , H4528, I, N45� 30.00', W28� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.8=LP, H4333, , H4333, I, N43� 30.00', W33� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.9=, , , TIMECRUIS, U, N42� 50.86', W33� 55.15', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.10=LP, H4037, , H4037, I, N40� 30.00', W37� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.11=KZ, H3841, , H3841, I, N38� 30.00', W41� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.12=KZ, 3645N, , 3645N, I, N36� 0.00', W45� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.13=, , , TIMEDSCNT, U, N35� 25.03', W45� 43.44', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.14=KZ, H3348, , H3348, I, N33� 30.00', W48� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.15=KZ, H3052, , H3052, I, N30� 30.00', W52� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.16=KZ, H2755, , H2755, I, N27� 30.00', W55� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.17=KZ, H2458, , H2458, I, N24� 30.00', W58� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.18=KZ, H2161, , H2161, I, N21� 30.00', W61� 0.00', +038000.00, , , , , , NONE, 0, 0, -1, 0, 0,  
waypoint.19=, 0008, , AFirst, U, N18� 14.61', W63� 23.30', +005000.00, , , ULUBA1, , 10, NONE, 0, 0, -1, 0, 0,  
waypoint.20=TN, ULUBA, TNCM, ULUBA, I, N18� 0.89', W63� 17.49', +002050.00, , , ULUBA1, , 10, NONE, 0, 0, -1, 0, 0,  
waypoint.21=, TNCM, , TNCM, A, N18� 2.51', W63� 6.79', +000000.00, , , , , , NONE, 0, 0, -1, 0, 0,  

[ATC_AircraftManager]
NumberofAircraft=1

[ATC_MessageSystem]
FrequencyNodes=0