I am hoping someone can help me come up with a pattern to get the time value from the following line of text:
frame= 73 fps= 41 q=0.0 size= 136kB time=1.67 bitrate= 668.9kbits/s
Ideally I’d like to be able to go
preg_match($pattern, $line, $matches);
$time = $matches[0];
I have been working on it for ages and cannot seem to get the pattern right. Any help appreciated!
This should do it:
(your result will be in
$matches[1])