 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
yli Smarty Rookie
Joined: 02 Jul 2010 Posts: 15
|
Posted: Sat Mar 17, 2012 2:48 pm Post subject: help with strpos and substr |
|
|
how can i use strpos and substr in template file smarty2
so in change of "10" from
{$v.texto|substr:0:10}
i need to be the value of
{$v.texto|strpos:"0:`$post.vary`"}
thanks |
|
| Back to top |
|
ericingram Smarty Rookie
Joined: 16 Nov 2011 Posts: 21
|
Posted: Mon Mar 19, 2012 5:06 am Post subject: Re: help with strpos and substr |
|
|
Do you just mean, {$v.texto|strpos:0:$post.vary} ??
Clarify if you can. |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|