Okay, here's the problem. I have a string I retrieve from the database that contains several PHP variables, I want to evaluate it and have the variables filled in, I'm just not sure how to do this.
This is the string I'm retrieving for example:
before I retrieve it I declare the variable $test, but when I print it out it comes out as this "$test
", and doesn't evaluate. How do I do this? I tried using the eval() function and it still doesn't change the output. This is a simplified example of what I'm actually doing to make it easier to solve, if anyone can help I'd appreciate it.