【问题标题】:Get the new link that results from the first link by php通过 php 获取从第一个链接产生的新链接
【发布时间】:2021-01-03 02:40:42
【问题描述】:

我有以下网址

https://w.soundcloud.com/player/?url=https://soundcloud.com/chrisbjerken/you-still-have-my-heart

我希望在我点击它时将其更改为以下网址:

https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/221607450

如何通过 PHP 获取新的 url?

因为我需要曲目后面的 ID“221607450”。

【问题讨论】:

    标签: php soundcloud


    【解决方案1】:

    例子:

     $s = 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/221607450';
        
                $r = explode('/', $s);
                var_dump(end($r));
    

    var_dump($_GET);
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-07
    • 1970-01-01
    • 2013-05-23
    • 2016-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-19
    相关资源
    最近更新 更多