How do I create an array in smarty from a given string like 22||33||50 and look if the given number is like the numbers above in smarty ?
I have a string say
{$test->strings} // contains 33||12||80
I want to look if one of the numbers in {$test->strings} is equal to {$test->myday}
You really shouldn’t be getting your view (smarty template) to perform any data manipulation, in my opinion. I would convert your string to an array before you send it to the template.