Common/common.php

//产生随机验证码
function random($length, $chars = '0123456789')
{
    //随机生成的逻辑
    return $hash;
}

Tpl/index.html

{:random(5)}

得到的结果:9536

相关文章:

  • 2021-11-21
  • 2021-11-21
  • 2021-12-05
  • 2022-01-04
  • 2022-02-07
  • 2021-08-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案