I have a script that breaks down each line by itself, what I need to do is to have the php script to look at each line and if the first word = NTP: then to get the number after it and assign it echo that number only.
so say you have these three lines
$data= "ORDER 5434 processed on time
NTP: +44332.43 was accepted
UTC: +5 approved";
so if I pass these three lines in, it should catch that NTP: and print +44332.43
what is the best way to do it. It is simple but there are so many string functions I do not know which to use and I have been a bit rusty.