01-02-2008, 08:35 PM
|
#4 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
This is more of a general comment than anything particularly specific to templating but remember that str_replace can accept arrays for the first three arguments (respectively: search, replace, subject). This saves the overhead of calling the same function more than once in succesion, and prevents you from repeating code unnecessarily. More simply, you could use:
|
|
|
|