Thread: substr help
View Single Post
  #2  
Old 07-16-2007, 02:22 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default Re: substr help

Are you in a TPL or a PHP file? It looks like you are trying to call PHP functions from TPL (Smarty). If that's the case, you need to do something like:
Code:
{$foo|substr:0:3}
Source. You might have to code it to handle both HTTPS and HTTP and non-WWW with WWW in case those scenarios ever come up for you.
__________________
4.1.8
Reply With Quote