Benim test.php ben aynı GET-parametreleri geçirerek, geri üretim komut index.php bir bağlantı sağlamak istiyorum. Yani bu PHP-kodu çalışıyorum:
foreach ($_GET as $key => $val) {
$get .= "&$key=$val";
}
# this one is wrong - I want to replace just the first "&"
$get = str_replace("&", "?", $get);
echo '<p>You are viewing the test version.</p>
<p><a href="/index.php' . $get .
'">Return to production version</a></p>';
Nasıl $ get dize sadece 1 karakter değiştiririm?
Ya da belki bir "öz-link" oluşturmak için güzel bir yolu var mı?
Thank you, Alex