I'm currently working on a PHP project and I'm facing a small issue. I have an HTML file that I want to include in my PHP code using the `include` function. However, I need to pass some dynamic data to this included HTML file.
Is it possible to use PHP variables within the included HTML file? For example, let's say I have a variable called `$name` in my PHP code, and I want to display that variable's value within the included HTML file. How can I achieve that?
I've tried simply echoing the variable within the HTML file, but it doesn't seem to work. Can someone please guide me on how I can accomplish this?
Any help would be highly appreciated. Thanks in advance!