Merhaba Arkadaşlar;


Elimde 1 adet JSON verisi var.

Array
(
[encoded] => Array
(
[0] => Array
(
[itag] => 22
[type] => Array
(
[0] => video
[1] => mp4
[2] => avc1.64001F, mp4a.40.2
)

[expire] => 1543772721
[quality] => hd720
[url] => https://r1---sn-hgn7rn7k.googlevideo.com/videoplayback?pl=24&mime=video %2Fmp4&ip=212.154.94.234&expire=1543772721&key=yt6&dur=133.607&source=youtube&ratebypass=yes&lmt=1537973925975418&requiressl=yes&ipbits=0&signature=437E8DA9624BEE233ACB762A855753005E319F6F.39CCB59B40BC350CCCB3350911225B26744349B5&fvip=1&c=WEB&id=o-AML7gaIAwryKQlg1Sx3oMt-3cNFCIEEUEYlp6nz4qJVz&gcr=tr&mn=sn-hgn7rn7k%2Csn-hpa7zn76&mm=31%2C26&txp=5531332&sparams=dur%2Cei%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mv=m&mt=1543751011&initcwndbps=606250&itag=22&ms=au%2Conr&ei=0MUDXLKINNGF-gbksKjYBg&title=Delibal++%7C+%C3%87a%C4%9Fatay+Ulusoy+-+Mutlu+Sonsuz
)

[1] => Array
(
[itag] => 43
[type] => Array
(
[0] => video
[1] => webm
[2] => vp8.0, vorbis
)

[expire] => 1543772721
[quality] => medium
[url] => https://r1---sn-hgn7rn7k.googlevideo.com/videoplayback?pl=24&mime=video %2Fwebm&ip=212.154.94.234&expire=1543772721&clen=13196567&key=yt6&dur=0.000&source=youtube&ratebypass=yes&lmt=1537975197031261&requiressl=yes&ipbits=0&signature=931A4E70CE3D3E63793E4233F494E1EC67459C15.5344ACCC528D65321F71C235D4FF09CA6504A815&gir=yes&fvip=1&c=WEB&id=o-AML7gaIAwryKQlg1Sx3oMt-3cNFCIEEUEYlp6nz4qJVz&gcr=tr&mn=sn-hgn7rn7k%2Csn-hpa7zn76&mm=31%2C26&txp=5511222&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mv=m&mt=1543751011&initcwndbps=606250&itag=43&ms=au%2Conr&ei=0MUDXLKINNGF-gbksKjYBg&title=Delibal++%7C+%C3%87a%C4%9Fatay+Ulusoy+-+Mutlu+Sonsuz
)

[2] => Array
(
[itag] => 18
[type] => Array
(
[0] => video
[1] => mp4
[2] => avc1.42001E, mp4a.40.2
)

[expire] => 1543772721
[quality] => medium
[url] => https://r1---sn-hgn7rn7k.googlevideo.com/videoplayback?pl=24&mime=video %2Fmp4&ip=212.154.94.234&expire=1543772721&clen=9180605&key=yt6&dur=133.607&source=youtube&ratebypass=yes&lmt=1537966056214821&requiressl=yes&ipbits=0&signature=0BD9AA1E85B7A14EF306E3E9FD4EEC428D6C999E.0417906D5935A9D17A730850EE4A8EBF55667091&gir=yes&fvip=1&c=WEB&id=o-AML7gaIAwryKQlg1Sx3oMt-3cNFCIEEUEYlp6nz4qJVz&gcr=tr&mn=sn-hgn7rn7k%2Csn-hpa7zn76&mm=31%2C26&txp=5531332&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mv=m&mt=1543751011&initcwndbps=606250&itag=18&ms=au%2Conr&ei=0MUDXLKINNGF-gbksKjYBg&title=Delibal++%7C+%C3%87a%C4%9Fatay+Ulusoy+-+Mutlu+Sonsuz
)
)

)


Ben bu veri içerisinde [itag] değeri 18'e eşit olanın url verisini almak istiyorum. Bunu nasıl yapabilirim?
Yardımcı olur musunuz?