how PHP: Equivalent of include using eval
If the code is the same, there appears to be a difference between:
What is the difference? Does anybody know?
I know the two are different because the
After some more research I found out what was wrong myself. The problem is in the fact that
As such the proper equivalent of the include is:
Alternatively, you can leave the opening tag out all together (as noted in the comments below):
My original solution was to add a semicolon, which also works, but looks a lot less clean if you ask me: