advanced code snippet search
tclancy on 09/16/08
09/16/08 04:24pm
$search_data.products.waist|@strstr:"W-1"
Report this snippet Tweet
why not just do
{if strstr($haystack,$needle)}
{/if}
Because I'm not that bright. I think this was my first time working in Smarty and the existing codebase was filled with gems like that.
Comment:
You need to login to post a comment.
why not just do
{if strstr($haystack,$needle)}
{/if}
Because I'm not that bright. I think this was my first time working in Smarty and the existing codebase was filled with gems like that.