This article mainly introduces the php method for obtaining YouTube video information. The example analyzes the principles and parsing skills of YouTube video format, which is of great practical value, for more information about how to use php to obtain YouTube video information, see the following example. Share it with you for your reference. The specific analysis is as follows:
Video address format of YouTube
Https://www.youtube.com/watch? V = [VIDEO_ID]
Example: https://www.youtube.com/watch? V = psvkyf3PzjE
The code is as follows:
// Obtain YouTube video information based on the video id
Function getYouTubeInfo ($ video_id ){
$ Content = file_get_contents ("http://youtube.com/get_video_info? Video_id = ". $ video_id );
Parse_str ($ content, $ ytarr );
Return $ ytarr;
}
$ Video_id = 'psvkyf3pzje ';
$ Ytinfo = getYouTubeInfo ($ video_id );
Echo' ';
Echo'
'. $ Ytinfo ['title'].'
'; // Title
Echo'
'; // Thumbnail
Echo'
'; //
Echo'
'; // Large image
Echo'
';
print_r($ytinfo);
echo '
';
Shows the output:
More information is as follows:
The code is as follows:
Array
(
[Ttsurl] => http://www.youtube.com/api/timedtext? V = require & expire = 1405449775 & asr_langs = fr % 2Cpt % 2Cnl % 2Ces % 2Cit % 2Cde % 2Cen % 2Cja % 2Cru % 2Cko & caps = asr & sparams = asr_langs % 2 Ccaps % 2Cv % 2 Cexpire & signature = 20784B16B4F6C4CF09E27D1267B033EE39ECAD7F. 2815379028207B479B0DFC818804EE8B07EFDA96 & key = yttt1 & hl = zh_HK
[Hl] => zh_HK
[Iv_load_policy] => 1
[Length_seconds] = & gt; 151
[Adsense_video_doc_id] => yt_psvkyf3PzjE
[Iv_allow_in_place_switch] => 1
[Plid] => AAT-OeiZGx1hsKAp
[Title] => 10 Amazing Practical Jokes
[Ptchn] => vGMGQC8gNkd4gwxSbABIlw
[Sw] = & gt; 1.0
[Pyv_in_related_cafe_experiment_id] =>
[Ad_device] => 1
[RmktPingThreshold] => 0
[Use_cipher_signature] => False
[Account_playback_token] => token =
[Storyboard_spec] => small | 48 #27 #100 #10 #10 #0 # default # U1k21Pz8pIncmT1q3DRcxfHAX-M | 61 #45 #77 #10 #10 #2000 # M $ M # djvTKb0T1vNlFvNsZg1Fk4Os2D4 | 123 #90 #77 #5 #5 #2000 # M $ M # dqfzymy1_sgsi4imkk7swh2iyfs
[Ad_module] => http://s.ytimg.com/yts/swfbin/player-vflo5lBXw/ad.swf
[Ptk] => Quirkology % 2 Buser
[Tag_for_child_directed] => False
[Ad_host] => ca-host-pub-8542631585713003
[Gut_tag] =>/4061/ytunknown/main
[Track_embed] => 1
[Iurl] => http://i1.ytimg.com/vi/psvkyf3PzjE/hqdefault.jpg
[Has_cc] => True
[YtfocEnabled] => 1
[Aid] => P82cR0jfshg
[View_count] = & gt; 8955678
[Enablecsi] => 1
[Csi_page_type] => embed
[Idpj] =>-5
[Pltype] => content
[Instream_long] => False
[Timestamp] = & gt; 1405424575
[Ad_eurl] => http://www.youtube.com/video/psvkyf3PzjE
[Video_verticals] => [3, 33,211,539,937]
[No_get_video_log] => 1
[C] => WEB
[Avg_rating] = & gt; 4.87036008516
[Afv_ad_tag] => http://googleads.g.doubleclick.net/pagead/ads? Ad_type = text_image_flash & client = ca-pub-6219811747049371 & description_url = http % 3A % 2F % 2Fwww.youtube.com % 2 Fvideo % large & hl = zh & host = ca-host-pub-8542631585713003 & ht_id = 5437415 & loeid = 902132,908561, response & url = http % 3A % 2F % 2Fwww.youtube.com % 2 Fvideo % Response & ytdevice = 1 & yt_pt = APb3F2872adH7YS_TG-YymJq9di8wBzQOkAnXpMipeVU0r2mlfwTVxN2ctKxFVKaIS9T_PkpW7O6oZvyWyekRhSFs5-Xzi1EEjEdzSCExqO2Qsixwq_0z3S2l94eYc-nkda4brbMiPCR4F7WprSp & channel = %%%2byt_no_ap % 2Bytdevice_1% response % %2bytel_embedded % 2Bytps_default % 2BVertical_8% 2BVertical_33% 2BVertical_36% 2BVertical_211% 2BVertical_539% 2BVertical_613% signature % 2Bafv_overlay % signature
[Iurlsd] => http://i1.ytimg.com/vi/psvkyf3PzjE/sddefault.jpg
[Loeid] => 902132,908561, 941365,950844
[Afv] => True
[Cafe_experiment_id] =>
[Dashmpd] => http://manifest.googlevideo.com/api/manifest/dash/upn/f2nEB_KIghU/id/o-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq/signature/C73E49120EA6BB8825C670AF1EF28837D096D227.01BF67F4E38FC40D5DA612E8ACC2CB7F3D9DF11E/mws/yes/ipbits/0/sparams/as%2Cid%2Cip%2Cipbits%2Citag%2Cplayback_host%2Csource%2Cexpire/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm_sd_hd_clear/mt/1405424547/fexp/902408%2C903802%2C908561%2C924213%2C924217%2C924222%2C930008%2C934024%2C934030%2C936927%2C941365%2C950844/itag/0/expire/1405447200/ip/114.142.144.2/sver/3/key/yt5/ MS/au/mv/m/source/youtube/playback_host/r1---sn-i3b7rn7k.googlevideo.com
[As_launched_in_country] => 1
[Iv_invideo_url] => http://www.youtube.com/annotations_invideo? Cap_hist = 1 & cta = 2 & video_id = psvkyf3PzjE
[Cc_asr] => 1
[Eventid] => vxPFU4bgLozf4QL30oGQDQ
[Advideo] => 1
[Allow_embed] => 1
[Adaptive_fmts] => bitrate = 710675 & itag = 135 & clen = 10059819 & lmt = 1389170366021025 & index = 708-1075 & type = video % 2Fmp4% 3B + codecs % 3D % 22avc1. 4d401e % 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3d1f4154cd991cdef7e9d62cb4ec70c7c856faba92. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D135% 26 clen % 3D10059819% 26ip % 3D114. 142.144.2% 26lmt % 3D1389170366021025% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 640x480 & init = 0-707, bitrate = 719185 & itag = 244 & clen = 8795903 & lmt = 1392713279627232 & index = 235-701 & type = video % 2 Fwebm % 3B + codecs % 3D % 22vp9% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3DCB83B580452CC79901DA1B97EAFC4D124B62A535. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D244% 26 clen % 3D8795903% 26ip % 3D114. 142.144.2% 26lmt % 3D1392713279627232% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 640x480 & init = 0-234, bitrate = 347320 & itag = 134 & clen = 4755047 & lmt = 1389170359494796 & index = 710-1077 & type = video % 2Fmp4% 3B + codecs % 3D % 22avc1. 4d4015% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3D82A00C177F27F482B817C4431FEB9D24645D21A4. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D134% 26 clen % 3D4755047% 26ip % 3D114. 142.144.2% 26lmt % 3D1389170359494796% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 480x360 & init = 0-709, bitrate = 325398 & itag = 243 & clen = 4386565 & lmt = 1392713345140443 & index = 235-700 & type = video % 2 Fwebm % 3B + codecs % 3D % 22vp9% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3de24784c81_b49a8cb5bbcbea146693f5be99174. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D243% 26 clen % 3d410465% 26ip % 3D114. 142.144.2% 26lmt % 3D1392713345140443% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 480x360 & init = 0-234, bitrate = 267465 & itag = 133 & clen = 4562407 & lmt = 1389170356479745 & index = 673-1040 & type = video % 2Fmp4% 3B + codecs % 3D % 22avc1. 4d400d % 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3DB3FB29C48F433326830973BB96CB44D1369BC103. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3d1_% 26 clen % 3D45624 07% 26ip % 3D114. 142.144.2% 26lmt % 3D1389170356479745% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 320x240 & init = 0-672, bitrate = 172413 & itag = 242 & clen = 2341546 & lmt = 1392713258254559 & index = 234-699 & type = video % 2 Fwebm % 3B + codecs % 3D % 22vp9% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3DCCA8C5F28250D7A5D4F09849A9FEE00723637F69. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D242% 26 clen % 3D2341546% 26ip % 3D114. 142.144.2% 26lmt % 3D1392713258254559% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 320x240 & init = 0-233, bitrate = 111638 & itag = 160 & clen = 2044016 & lmt = 1389170357716230 & index = 672-1039 & type = video % 2Fmp4% 3B + codecs % 3D % 22avc1. 4d400c % 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 760% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3d12d3f657364f94d535996a1cfe7c000097cb7958b. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D160% 26 clen % 3d2021316% 26ip % 3D114. 142.144.2% 26lmt % 3D1389170357716230% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & size = 192x144 & init = 0-671, bitrate = 128037 & itag = 140 & clen = 2396685 & lmt = 1389170356479565 & index = 592-815 & type = audio % 2Fmp4% 3B + codecs % 3D % 22mp4a. 40.2% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 860% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3DD4D185CE90BE2AED0DFF29AFF51F8FD31F7E038F. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D140% 26 clen % 3D2396685% 26ip % 3D114. 142.144.2% 26lmt % 3D1389170356479565% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & init = 0- 591, bitrate = 140964 & itag = 171 & clen = 2440463 & lmt = 1392713197841716 & index = 4452-4720 & type = audio % 2 Fwebm % 3B + codecs % 3D % 22 vorbis % 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fdur % 3D150. 792% 26id % Second % 26 expire % 3D1405447200% 26upn % Second % 26 ipbits % 3D0% 26 sparams % 3 Dclen % 252 Cdur % 252 Cgir % 252Cid % 252Cip % 252 Cipbits % 252 Citag % 252 Clmt % 252 Csource % 252 Cupn % 252 Cexpire % 26 signature % 3d99ac6494636cd3867f2665413af44c603d69a03f. %% 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%%%%252c9%27% %%252c950844% 26mv % 3Dm % 26 itag 3D171% 26 clen % 3D2440463% 26ip % 3D114. 142.144.2% 26lmt % 3d1392713197842616% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 sver % 3D3% 26 source % 3 Dyoutube % 26gir % 3 Dyes & init = 0- 4451
[Cc_font] => Arial Unicode MS, arial, verdana, _ sans
[Ad_video_pub_id] => ca-pub-6219811747049371
[Watermark] =>, http://s.ytimg.com/yts/img/watermark/youtube_watermark-vflHX6b6E.png,http://s.ytimg.com/yts/img/watermark/youtube_hd_watermark-vflAzLcD6.png
[Iurlmq] => http://i1.ytimg.com/vi/psvkyf3PzjE/mqdefault.jpg
[Ad_flags] => 0
[Iv3_module] => 1
[Ldpj] =>-14
[Sffb] => True
[Vid] => psvkyf3PzjE
[Ad_host_tier] = & gt; 5437415
[Cid] = & gt; 7379
[Status] => OK
[Thumbnail_url] => http://i1.ytimg.com/vi/psvkyf3PzjE/default.jpg
[Muted] => 0
[Iv_module] => http://s.ytimg.com/yts/swfbin/player-vflq0-BLs/iv_module.swf
[Oid] => 5ktxztP0i_DArnZizBrNwg
[Fexp] => 902408,901162, 908561,924213, 924217,924222, 930008-934024, 934030,941365, 950844
[Subtitles_xlb] => http://s.ytimg.com/yts/xlbbin/subtitles-strings-zh_HK-vflo2gkEm.xlb
[Mpvid] => OeTh0jm40F5BmeEA
[Midroll_prefetch_size] => 1
[TerraForm] => True
[Token] => vjVQa1PpcFMd5fXZSBDDaOaa _ 9y5Uc-2YlgFz_9NsQ =
[Vq] => auto
[Keywords] => quirkology, jokes, magic, psychology, bets
[Yt_pt] => APb3F2872adH7YS_TG-YymJq9di8wBzQOkAnXpMipeVU0r2mlfwTVxN2ctKxFVKaIS9T_PkpW7O6oZvyWyekRhSFs5-Xzi1EEjEdzSCExqO2Qsixwq_0z3S2l94eYc-nkda4brbMiPCR4F7WprSp
[Url_encoded_fmt_stream_map] => type = video % 2 Fwebm % 3B + codecs % 3D % 22vp8. 0% 2C + vorbis % 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fratebypass % 3 Dyes % 26id % signature % 26 signature % signature. quota % 26upn % quota % 26 ipbits % 3D0% 26 sparams % 3Did % 252Cip % 252 Cipbits % 252 Citag % 252 Cratebypass % 252 Csource % 252 Cupn % 252 Cexpire % 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%252c924217% %%%%%%%%%252c9%27% %%%%26 itag % 3D43% 26 expire % 3D1405447200% 26ip % 3D1. 142.144.2% 26 sver % 3D3% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 source % 3 Dyoutube % 26mv % 3Dm & itag = 43 & fallback_host = workshop & quality = medium, type = video % 2Fmp4% 3B + codecs % 3D % 22avc1. 42001E % 2C + mp4a. 40.2% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3 Fratebypass % 3 Dyes % 26id % signature % 26 signature % signature. quota % 26upn % quota % 26 ipbits % 3D0% 26 sparams % 3Did % 252Cip % 252 Cipbits % 252 Citag % 252 Cratebypass % 252 Csource % 252 Cupn % 252 Cexpire % 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%252c924217% %%%%%%%%%252c9%27% %%%%26 itag % 3D18% 26 expire % 3D1405447200% 26ip % 3D1. 142.144.2% 26 sver % 3D3% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 source % 3 Dyoutube % 26mv % 3Dm & itag = 18 & fallback_host = workshop & quality = medium, type = video % 2Fx-flv & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3Fid % signature % 26 signature % signature. quota % 26upn % quota % 26 ipbits % 3D0% 26 sparams % 3Did % 252Cip % 252 Cipbits % 252 Citag % 252 Csource % 252 Cupn % 252 Cexpire % 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%252c9%27% %%%252c950844% 26 itag % 3D5% 26 expire % 3D1405447200% 26ip % 3D114. 142.144.2% 26 sver % 3D3% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 source % 3 Dyoutube % 26mv % 3Dm & itag = 5 & fallback_host = workshop & quality = small, type = video % 2F3gpp % 3B + codecs % 3D % 22mp4v. 20.3% 2C + mp4a. 40.2% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3Fid % signature % 26 signature % signature. quota % 26upn % quota % 26 ipbits % 3D0% 26 sparams % 3Did % 252Cip % 252 Cipbits % 252 Citag % 252 Csource % 252 Cupn % 252 Cexpire % 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%252c9%27% %%%252c950844% 26 itag % 3D36% 26 expire % 3D1405447200% 26ip % 3D114. 142.144.2% 26 sver % 3D3% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 source % 3 Dyoutube % 26mv % 3Dm & itag = 36 & fallback_host = workshop & quality = small, type = video % 2F3gpp % 3B + codecs % 3D % 22mp4v. 20.3% 2C + mp4a. 40.2% 22 & url = http % 3A % 2F % 2Fr1---sn-i3b7rn7k.googlevideo.com % 2 Fvideoplayback % 3Fid % signature % 26 signature % signature. quota % 26upn % quota % 26 ipbits % 3D0% 26 sparams % 3Did % 252Cip % 252 Cipbits % 252 Citag % 252 Csource % 252 Cupn % 252 Cexpire % 26mt % 3D1405424547% 26 fexp % 3D902408% 252c90%2% %%%%%%%%%%%%%%252c9%27% %%%252c950844% 26 itag % 3D17% 26 expire % 3D1405447200% 26ip % 3D114. 142.144.2% 26 sver % 3D3% 26mws % 3 Dyes % 26key % 3Dyt5% 26 ms % 3Dau % 26 source % 3 Dyoutube % 26mv % 3Dm & itag = 17 & fallback_host = quality = small
[Excluded_ads] => 3 = 1_1, 1_2_1, 1_3, 2_2_1, 2_3
[Allow_ratings] => 1
[Allow_html5_ads] => 1
[Cc3_module] => 1
[Ad_logging_flag] => 1
[FocEnabled] => 1
[Tmi] => 1
[Cut_ad_for_ypc] => False
[Author] => Quirkology
[Dash] => 1
[Allowed_ads] => [8, 1, 2, 10, 0]
[Iurlhq] => http://i1.ytimg.com/vi/psvkyf3PzjE/hqdefault.jpg
[Cc_module] => http://s.ytimg.com/yts/swfbin/player-vflq0-BLs/subtitle_module.swf
[Host_language] => zh
[Midroll_freqcap] = & gt; 420.0
[Uid] => vGMGQC8gNkd4gwxSbABIlw
[Fmt_list] => 43/640x360/99/0/640/360/9x320/0/115,5/240/7x320/0/240/99/176/144/99 x/1/x /1/0
[BaseUrl] => http://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/
[Identifier] => identifier, identifier, yt_no_ap, ytdevice_1, identifier, ytps_default, Vertical_8, Vertical_33, Vertical_36, Vertical_211, identifier, afv_overlay, callback
[Video_id] => psvkyf3PzjE
)
I hope this article will help you with php programming.