Forum Moderators: coopster

Message Too Old, No Replies

how to replace a hyperlink in php

         

ahmed24

2:08 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



i have a script that i call like this index.php?language=eng&pageID=12

can anyone tell me how i can use php to echo the URL and replace "eng" with "fr"

thank you

mooger35

6:45 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



str_replace [ca3.php.net]

$eng_link = "index.php?language=eng&pageID=12";

$fr_link = str_replace("eng", "fr", $eng_link);

echo $fr_link;