📜  php 获取 youtube 代码 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:45.950000             🧑  作者: Mango

代码示例2
preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user|shorts)\/))([^\?&\"'>]+)/", $url, $matches);