如何在php中修改url。。我想在输出url的末尾添加一些额外的文本

如何在php中修改url。。我想在输出url的末尾添加一些额外的文本,php,hyperlink,youtube,Php,Hyperlink,Youtube,$this->settings['']。'extractVideoID($groups[2])。&type=Download“target=“\u blank”class=“vidscrab”title=“Download this video”>下载 这是代码,结果是 我想在链接后面添加一些额外的单词,例如&type=Download 我需要这个输出 请帮忙我想你需要这个 $("a").click(function() { $(this).prop("href", $(this).pr

$this->settings['']。'extractVideoID($groups[2])。&type=Download“target=“\u blank”class=“vidscrab”title=“Download this video”>下载

这是代码,结果是

我想在链接后面添加一些额外的单词,例如
&type=Download

我需要这个输出

请帮忙我想你需要这个

$("a").click(function() {
    $(this).prop("href", $(this).prop("href") + "&type=Download");
});

你能添加整个锚定标签吗