Replacing HTML variables with PHP array values [beginner]

Like the title says, I have an array with six values that need to be inserted into variables in an HTML file.

Can someone give me an idea of how to start? For a high school project, any help is much appreciated.

Xavier

There are no variables in HTML, for starter.

It would be a good idea to illustrate your question with the desired result, whatever it be.

1 Like

So this is using MVC where I will have variables such as %name% in <p>, and I want to be able to use the PHP file to find and replace %name% with a value from an array. I’ve seen how to use str_replace, but unfamiliar with how to look in HTML files. Sorry for any confusion.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.