I have a array exp :
Array
(
[0] => https://openload.co/f/duLIXdarHEM/RARBG.txt
[1] => https://openload.co/f/C7D4l55xXn8/the.predator.2018.1080p.bluray.x264-sparks.idx
[2] => https://openload.co/f/9fap6xaoJjQ/the.predator.2018.1080p.bluray.x264-sparks.sub
[3] => https://openload.co/f/zE7ztog0j9U/the.predator.2018.1080p.bluray.x264-sparks.jpg
[4] => https://openload.co/f/wjF657ljkVg/the.predator.2018.1080p.bluray.x264-sparks.mkv.mp4
[5] => https://openload.co/f/4B0qD5ab5bU/Payback.Straight.Up.2006.DC.BRRip.XviD.MP3-XVID.avi
[6] => https://openload.co/f/4B0qD5ab5bU/Payback.Straight.Up.2006.DC.BRRip.sample.XviD.MP3-XVID.avi
[7] => https://openload.co/f/b1ihEIUgdDA/2_Eng.srt
)
How can I create a function to get links containing ".mp4", ".avi", ".mkv", ... and delete the links that contain the words ".txt" ".jpg" ".sample", ..... and bring it back to a new continuous array