php 获取抖音id

<?php
 public  function getid($dy_url){
        $header=get_headers($dy_url);
        $str = "/^.*?(d+).*/";
        preg_match($str,$header[6],$arr);
        return $arr[1];
    }
原文地址:https://www.cnblogs.com/phpwyl/p/9946743.html