如果我有YouTube视频网址,有没有办法使用PHP和cURL从YouTube API获取相关缩略图?
php youtube curl youtube-api youtube-data-api
有人可以告诉我如何从URL中获取youtube id,无论URL中有哪些其他GET变量.
以此视频为例:http://www.youtube.com/watch?v=C4kxS1ksqtw&feature=related 所以v=在下一个之间和之前&
http://www.youtube.com/watch?v=C4kxS1ksqtw&feature=related
v=
&
php regex
我想用cURL做头部请求,想知道这是不是要走了?
php curl http
php ×3
curl ×2
http ×1
regex ×1
youtube ×1
youtube-api ×1
youtube-data-api ×1