![]() |
substr help
Hey there,
I need to take a chunk out of this: {$product.tmbn_url} diaplays as: http://www.thewebbbsite.ca/shop/images/P/fl_00001.swf I need: fl_00001 substr('{$product.tmbn_url}', 41, -4) I figure it might look something like this? I've been trying lots of stuff and I can't seem to work this out.. ?? help ~! -hroth |
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} |
All times are GMT -8. The time now is 06:35 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.