企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` ~~~ public function login() { $data = [ 'name' => '11111', 'email' => 'thinkphp@qq.com', 'age' => '111' ]; $validate = new User(); if(!$validate->check($data)){ dump($validate->getError()); }else{ dump($data); } } ~~~ ``` ``` ~~~ string(28) "name只能是汉字、字母" ~~~ ```