request->post['telephone'])) { $th">
当前位置:Gxlcms > PHP教程 > phpif判断出现的鬼怪问题

phpif判断出现的鬼怪问题

时间:2021-07-01 10:21:17 帮助过:22人阅读

phpif判断

if ( !preg_match("/^1[34578]\d{9}$/",$this->request->post['telephone'])) {
$this->error['telephone'] = $this->language->get('error_telephone');
}
else{
$telephone_v = $this->model_account_customer-> getTelephoneValidation($this->request->post['telephone']);
if($telephone_v != 0) {

// $this->error['telephone'] = $this->language->get('error_telephone_v');
printf("得到的数据为:%d", $telephone_v);
$this->error['telephone'] = $this->language->get('error_telephone_v');
}

}
让人惊讶的是 $telephone_v =0 很能执行并打印了0,错误正常显示。

人气教程排行