php获取YouTube视频信息的方法


Posted in PHP onFebruary 11, 2015

本文实例讲述了php获取YouTube视频信息的方法。分享给大家供大家参考。具体分析如下:

YouTube的视频地址格式
https://www.youtube.com/watch?v=[VIDEO_ID]
例子:https://www.youtube.com/watch?v=psvkyf3PzjE

//根据video id 获取YouTube视频信息  

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 '<meta http-equiv="content-type" content="text/html;charset=utf-8">';  

echo '<p><strong>'.$ytinfo['title'].'</strong></p>';     // 标题  

echo '<p><img src="'.$ytinfo['thumbnail_url'].'"></p>';  // 缩略图  

echo '<p><img src="'.$ytinfo['iurlmq'].'"></p>';         // 中图  

echo '<p><img src="'.$ytinfo['iurl'].'"></p>';           // 大图  

  

echo '<pre>';  

print_r($ytinfo);  

echo '</pre>';

输出如下图所示:

php获取YouTube视频信息的方法

更多信息如下:

Array  

(  

    [ttsurl] => http://www.youtube.com/api/timedtext?v=psvkyf3PzjE&expire=1405449775&asr_langs=fr%2Cpt%2Cnl%2Ces%2Cit%2Cde%2Cen%2Cja%2Cru%2Cko&caps=asr&sparams=asr_langs%2Ccaps%2Cv%2Cexpire&signature=20784B16B4F6C4CF09E27D1267B033EE39ECAD7F.2815379028207B479B0DFC818804EE8B07EFDA96&key=yttt1&hl=zh_HK  

    [hl] => zh_HK  

    [iv_load_policy] => 1  

    [length_seconds] => 151  

    [adsense_video_doc_id] => yt_psvkyf3PzjE  

    [iv_allow_in_place_switch] => 1  

    [plid] => AAT-OeiZGx1hsKAp  

    [title] => 10 Amazing Practical Jokes  

    [ptchn] => vGMGQC8gNkd4gwxSbABIlw  

    [sw] => 1.0  

    [pyv_in_related_cafe_experiment_id] =>   

    [ad_device] => 1  

    [rmktPingThreshold] => 0  

    [use_cipher_signature] => False  

    [account_playback_token] => QUFFLUhqay1iUzhSU0V5RUZreHlFb3JDcUx3eVJOSnVRd3xBQ3Jtc0trVHRiY1RxejNPNmt4ZHlUS0dNSzgzOUFTOW5Pd05mN2kxenNaWU12UGxzWExRVzlFZG1vdmxFRDZpNXBfVUQzdGpYbEZNbXZ3SG9PX0VucHlaQmJxWEtJbWNUVk9qYTFiUi03NGpJNU5pbkNhaXdMOA==  

    [storyboard_spec] => http://i1.ytimg.com/sb/psvkyf3PzjE/storyboard3_L$L/$N.jpg|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#dQFZyMyJWsgSI4imKk7swh2iyFs  

    [ad_module] => http://s.ytimg.com/yts/swfbin/player-vflo5lBXw/ad.swf  

    [ptk] => Quirkology%2Buser  

    [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] => 8955678  

    [enablecsi] => 1  

    [csi_page_type] => embed  

    [idpj] => -5  

    [pltype] => content  

    [instream_long] => False  

    [timestamp] => 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] => 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%2Fvideo%2Fpsvkyf3PzjE&hl=zh&host=ca-host-pub-8542631585713003&ht_id=5437415&loeid=903802,908561,941365,950844&url=http%3A%2F%2Fwww.youtube.com%2Fvideo%2Fpsvkyf3PzjE&ytdevice=1&yt_pt=APb3F2872adH7YS_TG-YymJq9di8wBzQOkAnXpMipeVU0r2mlfwTVxN2ctKxFVKaIS9T_PkpW7O6oZvyWyekRhSFs5-Xzi1EEjEdzSCExqO2Qsixwq_0z3S2l94eYc-nkda4brbMiPCR4F7WprSp&channel=yt_mpvid_OeTh0jm40F5BmeEA%2Byt_cid_7379%2Byt_no_ap%2Bytdevice_1%2Bafv_user_id_vGMGQC8gNkd4gwxSbABIlw%2Bafv_user_quirkology%2Bytel_embedded%2Bytps_default%2BVertical_8%2BVertical_33%2BVertical_36%2BVertical_211%2BVertical_539%2BVertical_613%2BVertical_937%2Bafv_overlay%2Binvideo_overlay_480x70_cat27  

    [iurlsd] => http://i1.ytimg.com/vi/psvkyf3PzjE/sddefault.jpg  

    [loeid] => 903802,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%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3D1FC574CD991CDEF7E9D62CB4EC70C7C856FABA92.92A7C9A24C6C6CD77DDE8C8EB55E7CC698104DB0%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D135%26clen%3D10059819%26ip%3D114.142.144.2%26lmt%3D1389170366021025%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&size=640x480&init=0-707,bitrate=719185&itag=244&clen=8795903&lmt=1392713279627232&index=235-701&type=video%2Fwebm%3B+codecs%3D%22vp9%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3DCB83B580452CC79901DA1B97EAFC4D124B62A535.F5BF4A6FBC4A46459B0F0B5AA6686C1414B113DB%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D244%26clen%3D8795903%26ip%3D114.142.144.2%26lmt%3D1392713279627232%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&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%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3D82A00C177F27F482B817C4431FEB9D24645D21A4.AD08DC1266CCE14473E5D9E79FD2B1FB9B12D2FF%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D134%26clen%3D4755047%26ip%3D114.142.144.2%26lmt%3D1389170359494796%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&size=480x360&init=0-709,bitrate=325398&itag=243&clen=4386565&lmt=1392713345140443&index=235-700&type=video%2Fwebm%3B+codecs%3D%22vp9%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3DE24784C8417B49A8CB5BBCBEA146693F5BE99174.2CC63D490027D3F8089C00E599E0512A535BC9C4%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D243%26clen%3D4386565%26ip%3D114.142.144.2%26lmt%3D1392713345140443%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&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%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3DB3FB29C48F433326830973BB96CB44D1369BC103.1D5F72E076804DEFEAAC26ED846B82FAC182D82F%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D133%26clen%3D4562407%26ip%3D114.142.144.2%26lmt%3D1389170356479745%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&size=320x240&init=0-672,bitrate=172413&itag=242&clen=2341546&lmt=1392713258254559&index=234-699&type=video%2Fwebm%3B+codecs%3D%22vp9%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3DCCA8C5F28250D7A5D4F09849A9FEE00723637F69.786B79CC0735041DB55BF9F81A89EA3FC0421754%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D242%26clen%3D2341546%26ip%3D114.142.144.2%26lmt%3D1392713258254559%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&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%2Fvideoplayback%3Fdur%3D150.760%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3D12D3F657364F94D535996A1CFE7C41797CB7958B.EBDF1D5F7EA15E99101D8468C8F3C3BAC609D097%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D160%26clen%3D2044016%26ip%3D114.142.144.2%26lmt%3D1389170357716230%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&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%2Fvideoplayback%3Fdur%3D150.860%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3DD4D185CE90BE2AED0DFF29AFF51F8FD31F7E038F.78F7D90CFEE7B73FF1BB863DDDCDDEF9AC88BE99%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D140%26clen%3D2396685%26ip%3D114.142.144.2%26lmt%3D1389170356479565%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&init=0-591,bitrate=140964&itag=171&clen=2440463&lmt=1392713197841716&index=4452-4720&type=audio%2Fwebm%3B+codecs%3D%22vorbis%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fdur%3D150.792%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26expire%3D1405447200%26upn%3DKGNUK6LuT04%26ipbits%3D0%26sparams%3Dclen%252Cdur%252Cgir%252Cid%252Cip%252Cipbits%252Citag%252Clmt%252Csource%252Cupn%252Cexpire%26signature%3D99AC6494636CD4657F2665413AF44C603D69A03F.EFAA5D2D5B358C4B89285A852DA73601855B2268%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26mv%3Dm%26itag%3D171%26clen%3D2440463%26ip%3D114.142.144.2%26lmt%3D1392713197841716%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26sver%3D3%26source%3Dyoutube%26gir%3Dyes&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] => 5437415  

    [cid] => 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,903802,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  

    [shortform] => 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%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fratebypass%3Dyes%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26signature%3D941D46796D45C0C4D55AE0AD13A98ACF13AD1400.AACED8AB6CD15C1917DCAC1823A28AAB7B436645%26upn%3DAuQPXQuMv_8%26ipbits%3D0%26sparams%3Did%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26itag%3D43%26expire%3D1405447200%26ip%3D114.142.144.2%26sver%3D3%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26source%3Dyoutube%26mv%3Dm&itag=43&fallback_host=tc.v12.cache3.googlevideo.com&quality=medium,type=video%2Fmp4%3B+codecs%3D%22avc1.42001E%2C+mp4a.40.2%22&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fratebypass%3Dyes%26id%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26signature%3D1DCA7FA6814DE080DF58799C1399F84564599F6E.1090D46786189F24EC82F0F03B367091DEE5CB6F%26upn%3DAuQPXQuMv_8%26ipbits%3D0%26sparams%3Did%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26itag%3D18%26expire%3D1405447200%26ip%3D114.142.144.2%26sver%3D3%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26source%3Dyoutube%26mv%3Dm&itag=18&fallback_host=tc.v18.cache7.googlevideo.com&quality=medium,type=video%2Fx-flv&url=http%3A%2F%2Fr1---sn-i3b7rn7k.googlevideo.com%2Fvideoplayback%3Fid%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26signature%3DD9BF21D3A338BF65EF25DCF1C48B5AF04A6FDA51.9F85C4F76C002380D384F8033E0EFC1F64AFED39%26upn%3DAuQPXQuMv_8%26ipbits%3D0%26sparams%3Did%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26itag%3D5%26expire%3D1405447200%26ip%3D114.142.144.2%26sver%3D3%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26source%3Dyoutube%26mv%3Dm&itag=5&fallback_host=tc.v11.cache2.googlevideo.com&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%2Fvideoplayback%3Fid%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26signature%3D0C5C8DDB1B491981847A8C423C1300CDA80BF34E.C699529D9EC6A7D579CB237330697044C514E552%26upn%3DAuQPXQuMv_8%26ipbits%3D0%26sparams%3Did%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26itag%3D36%26expire%3D1405447200%26ip%3D114.142.144.2%26sver%3D3%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26source%3Dyoutube%26mv%3Dm&itag=36&fallback_host=tc.v14.cache4.googlevideo.com&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%2Fvideoplayback%3Fid%3Do-AKm8X5p-waOfjKuduWXVRoaCAHWLVisXWk4acX1jqKuq%26signature%3D4B5A255CDCC9EC7738277722223E8317017FC8FF.6AD06552C98EDA94D0AC50E170F1DFAB93ED2914%26upn%3DAuQPXQuMv_8%26ipbits%3D0%26sparams%3Did%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26mt%3D1405424547%26fexp%3D902408%252C903802%252C908561%252C924213%252C924217%252C924222%252C930008%252C934024%252C934030%252C936927%252C941365%252C950844%26itag%3D17%26expire%3D1405447200%26ip%3D114.142.144.2%26sver%3D3%26mws%3Dyes%26key%3Dyt5%26ms%3Dau%26source%3Dyoutube%26mv%3Dm&itag=17&fallback_host=tc.v3.cache7.googlevideo.com&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] => 420.0  

    [uid] => vGMGQC8gNkd4gwxSbABIlw  

    [fmt_list] => 43/640x360/99/0/0,18/640x360/9/0/115,5/320x240/7/0/0,36/320x240/99/1/0,17/176x144/99/1/0  

    [baseUrl] => http://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/  

    [ad_channel_code_overlay] => yt_mpvid_OeTh0jm40F5BmeEA,yt_cid_7379,yt_no_ap,ytdevice_1,afv_user_id_vGMGQC8gNkd4gwxSbABIlw,afv_user_quirkology,ytel_embedded,ytps_default,Vertical_8,Vertical_33,Vertical_36,Vertical_211,Vertical_539,Vertical_613,Vertical_937,afv_overlay,invideo_overlay_480x70_cat27  

    [video_id] => psvkyf3PzjE  

)

希望本文所述对大家的php程序设计有所帮助。

PHP 相关文章推荐
用Flash图形化数据(一)
Oct 09 PHP
落伍首发 php+mysql 采用ajax技术的 省 市 地 3级联动无刷新菜单 源码
Dec 16 PHP
PHP 批量更新网页内容实现代码
Jan 05 PHP
几款免费开源的不用数据库的php的cms
Dec 19 PHP
基于PHP服务端图片生成缩略图的方法详解
Jun 20 PHP
用php简单实现加减乘除计算器
Jan 06 PHP
php判断是否为json格式的方法
Mar 04 PHP
Yii入门教程之目录结构、入口文件及路由设置
Nov 25 PHP
jQuery+Ajax+PHP“喜欢”评级功能实现代码
Oct 08 PHP
zend framework重定向方法小结
May 28 PHP
php中的单引号、双引号和转义字符详解
Feb 16 PHP
PHP图片水印类的封装
Jul 06 PHP
php实现图片局部打马赛克的方法
Feb 11 #PHP
php实现获取文件mime类型的方法
Feb 11 #PHP
php强制更新图片缓存的方法
Feb 11 #PHP
Laravel中使用自己编写类库的3种方法
Feb 10 #PHP
Laravel中使用阿里云OSS Composer包分享
Feb 10 #PHP
PHP实现Javascript中的escape及unescape函数代码分享
Feb 10 #PHP
PHP实现获取FLV文件的时间
Feb 10 #PHP
You might like
PHP一些有意思的小区别
2006/12/06 PHP
ThinkPHP CURD方法之data方法详解
2014/06/18 PHP
微信公众号开发之微信公共平台消息回复类实例
2014/11/14 PHP
分享自定义的几个PHP功能函数
2015/04/15 PHP
smarty模板判断数组为空的方法
2015/06/10 PHP
THinkPHP获取客户端IP与IP地址查询的方法
2016/11/14 PHP
PHP7扩展开发之hello word实现方法详解
2018/01/15 PHP
Javascript 中文字符串处理额外注意事项
2009/11/15 Javascript
jquery 无限级联菜单案例分享
2013/03/26 Javascript
JS JQUERY实现滚动条自动滚到底的方法
2015/01/09 Javascript
js判断一个字符串是否包含一个子串的方法
2015/01/26 Javascript
jquery实现页面百叶窗走马灯式翻滚显示效果的方法
2015/03/12 Javascript
jQuery使用removeClass方法删除元素指定Class的方法
2015/03/26 Javascript
js简单实现点击左右运动的方法
2015/04/10 Javascript
Node.js下自定义错误类型详解
2016/10/17 Javascript
利用jQuery插件imgAreaSelect实现图片上传裁剪(同步显示图像位置信息)
2016/12/02 Javascript
使用Vue开发自己的Chrome扩展程序过程详解
2019/06/21 Javascript
vue.js循环radio的实例
2019/11/07 Javascript
Antd下拉选择,自动匹配功能的实现
2020/10/24 Javascript
python根据出生日期返回年龄的方法
2015/03/26 Python
Python简单的制作图片验证码实例
2017/05/31 Python
10 分钟快速入门 Python3的教程
2019/01/29 Python
python 应用之Pycharm 新建模板默认添加编码格式-作者-时间等信息【推荐】
2019/06/17 Python
Anaconda+Pycharm环境下的PyTorch配置方法
2020/03/13 Python
CSS3 实现图形下落动画效果
2020/11/13 HTML / CSS
三星美国官网:Samsung美国
2017/02/06 全球购物
Guess荷兰官网:美国服饰品牌
2020/01/22 全球购物
兼职业务员岗位职责
2014/01/01 职场文书
合伙协议书
2014/04/23 职场文书
开学典礼演讲稿
2014/05/23 职场文书
优秀教师事迹材料
2014/12/15 职场文书
2014个人年度工作总结范文
2014/12/24 职场文书
教师工作决心书
2015/02/04 职场文书
小学生组织委员竞选稿
2015/11/21 职场文书
关于python pygame游戏进行声音添加的技巧
2021/10/24 Python
解析MySQL索引的作用
2022/03/03 MySQL