💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
### 函数 ~~~ /** * 模版中使用函数 * 视图文件位置: /application/example/view/ViewController/fetchExample.html * @return string */ public function functionExample() { $age = 18.88; $this->assign('age', $age); return $this->fetch(); } ~~~ ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>function</title> </head> <body> {:round($age,0)} </body> </html> ~~~