How to Create an Array an Look if a value is in Array
Posted
by streetparade
on Stack Overflow
See other posts from Stack Overflow
or by streetparade
Published on 2010-03-18T09:58:43Z
Indexed on
2010/03/18
10:01 UTC
Read the original article
Hit count: 297
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}
how can I do that?
© Stack Overflow or respective owner