smarty支持php的系统函数
可以直接使用
{if in_array($str, $arr) || strpos($str, $string)}
yes

{else}

no
{/if}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-11-17
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案