Loading...
 
Features / Usability

Features / Usability


How to check if a string exist in 2 smarty variables

posts: 8542 Israel

Thank you dear jonny.

Ok I got your idea... I tried to create a conversion additional code but though I was overdoing something for what we may have a solution.

So for the relation field value only, grab the second word with a "preg_match_all"
preg_match_all ("\s+^\s+", $paymentref, $paymentrefmonth)

and convert each month (string) by a number.
{if $paymentrefmonth eq "January"}{$paymentrefmonth = 01}{elseif $paymentrefmonth eq "February"} ....

Then do the comparison...

Upcoming Events

No records to display

Latest Page Changes

No records to display ...more

Menu