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


How to Modify url in php.. i want to add some extra text at the end of output url

$this->settings[''].'extractVideoID($groups[2]).'&type=Download" target="_blank"class="vidscrab"title="Download this video">Download

这是代码,结果是http://vidscrab.com/getvideo.php?videoid=yYUKp7SPj1Y

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

我需要这个输出http://vidscrab.com/getvideo.php?videoid=yYUKp7SPj1Y&type=Download

请帮助

我想你需要这个

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