📜  php 从 url 获取 id - PHP 代码示例

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

代码示例2
$path = parse_url($url, PHP_URL_PATH);
$pathFragments = explode('/', $path);
$end = end($pathFragments);