user_id=$user_id; if(!in_array($this->user_id, $this->user_ids)) { $res['status']=0; $res['msg']="你的账号不在测试账号内"; // ajax_return($res);exit; print_r($res);exit; } } public function test1($user_id) { echo ""; echo "___1111"; }}$user_id=66642; //new类的时候带参数$obj=new test($user_id);$obj->test1($user_id); ?>