Bonjour tout le monde,
J'aurais besoin d'un coup de main pour convertir un programme python en PHP

L'originale en python:
Code python : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
with open('C:/Falcon BMS 4.32/User/Briefings/debrief.txt',"r") as fichier:
    text = fichier.read()
donnee = text.split('RECORD BEGIN TIMESTAMP ')[-1]
fields = ["Mission Type: "]
 
for ligne in donnee.split('\n'):
    for field in fields:
         if field in ligne:
             donnee = ligne[len(field):]
             print(donnee)
             break

Comment faire exactement la même chose en code PHP
Merci