ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] # 快速了解 先看代码: ~~~php $target = new \yii\log\FileTarget(); $config = [ 'logFile' => 'D:/a.log', 'maxFileSize' => 3306, ]; $target = Yii::configure($target, $config); echo $target->logFile; // D:/a.log echo $target->maxFileSize; //3306 ~~~ `Yii::configure`可以将一个与类的属性名对应的数组值注入到类的属性中