Php STRING replace

mojo142's Avatar, Join Date: Dec 2009
Newbie Member

I want to make a php page and i am having trouble in making that. i want to make a page where i will have a php files with some html code and i want to replace that specific one string in that code which could be 123456 with 546321 when it load by

for this i found this way something like page.php?id=546321

So this thing make easy for me just replacing the id and making a new page.

How to do so or any tut for ths.
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
PHP Code:


save this as page.php according to your example
and pass that argument
(srry if any erroor check for the first line i w juz writting form the memory)