PHP PHP 重定向代码

mattie · 2022-04-07 21:33:15 · 热度: 11

PHP 重定向代码

以下使用 PHP header 函数重定向:

function redirect($url)
{
    header("Location: $url");
    exit();
}

猜你喜欢:
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册