FOr performance reason ..which would be fater to use? I am trying to create HTML templates so i can seperate HTML from PHP code. If i use include() then i have to use variable in html template include files. If i use file() i can use custom tags tag in html template which i can parse with regular express.
Which would be faster?
If i use include() then i have to use variable in html template include files.
Well, then you're not separating PHP code from HTML, because you still have those variables embedded there.
You'll have to read the file and parse the file then.
Diego