Posted By

tclancy on 09/16/08


Versions (?)

Smarty: String Search

 / Published in: Smarty

  1. $search_data.products.waist|@strstr:"W-1"

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Frank on September 17, 2008

why not just do

{if strstr($haystack,$needle)}


Posted By: tclancy on April 29, 2009

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.

You need to login to post a comment.