If i have an array $output that looks like this, how can i search the array and echo out the duration value which in this case is 30. Duration is not always key [18].
Array
(
[16] => hasKeyframes : true
[17] => hasMetadata : true
[18] => duration : 30
[19] => audiosamplerate : 22000
[20] => audiodatarate : 68
[21] => datasize : 1103197
}
exec('ffmpeg -i video.flv', $output);I did not make it this way