$link = http://site.com/view/page.php?id=50&reviews=show
How can we add &extra=video
after id=50
?
id
is always numeric.- url can have many other variables after
?id=50
&extra=video
should be added before the first&
and after the50
(value ofid
)
It will be used this way:
echo '<a href="' . $link . '">Get video</a>';
Thanks.