php 获取抖音id

<?php
 public  function getid($dy_url){
        $header=get_headers($dy_url);
        $str = "/^.*?(\d+).*/";
        preg_match($str,$header[6],$arr);
        return $arr[1];
    }

 

posted @ 2018-11-12 15:30  phpwyl  阅读(2294)  评论(1编辑  收藏  举报