Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- The One Line Template Engine!


Gibble - 7:49 pm on Sep 11, 2007 (gmt 0)


Depends which is faster.

Multiple string replaces (more than three) tend to be faster done with preg_replace, fewer replaces are quicker with str_replace.

Or so the benchmarks I recall seemed to indicate.

So it all depends how many things you plan to have in your template.

EDIT:
And yes, looking back, I notice the "generic" factor is huge.

[edited by: Gibble at 7:50 pm (utc) on Sep. 11, 2007]


Thread source:: http://www.webmasterworld.com/php/3444822.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com