Replacing words / tags with a php code

hi im trying to redesign a builder type script
and this works perfect, however this code alows me to add in TAGS like this

{USERNAME}
{DATE}

but its basicly only a place holder
and then it saves this whole code inside either a sql or a file

now i want to make something like a php page that will them open this page and replaces those TAGS with premade code

but im lost

i can change it to words like a language file
but i want to include compleet sections of code

how do i do this ?
can someone help or put me in right direction

I’m not sure I fully understand, but string replace and using arrays is how I’ve handled this in the past.

would this work with a complete php script ?

replace this {CODE HERE}
with

SELECT …

if… {}
else …{}

Sorry, haven’t been on. Have you solved this or still need help?

Sponsor our Newsletter | Privacy Policy | Terms of Service