💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 执行验证 ~~~ /** * 数据验证 */ public function check() { $data = [ 'usernamea' => 'aaphp', 'password' => '123456', 'age' => '8', 'email' => '123456@qq.com', 'repassword' => '123456', 'money' => '100.1', 'birthday' => '2010-8-8', 'blog' => 'http://luojiangtao.com', 'blogIp' => 'FF01::101', '_token_' => '1', ]; $validate = new UserValidate(); if ($validate->check($data)) { echo '验证通过'; } else { echo '验证未通过,错误信息:<br/>'; var_dump($validate->getError()); } var_dump($_SERVER); } ~~~