Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Features / Usability

Features / Usability


How to check if a string exist in 2 smarty variables

posts: 126886 United Kingdom

Surely you would need to convert both month names into numbers (using %m format) and then do something like {if $thatMonthNumber lt $thisMonthNumber}{do stuff...

If you know the month you are looking at is always the 2nd word in the string then some regex should do it with preg_match_all ?

Does that help?

There are no comments at this time.