gpt4 book ai didi

php - fatal error : Call to undefined function empty()

转载 作者:搜寻专家 更新时间:2023-10-31 20:46:37 25 4
gpt4 key购买 nike

知道为什么我会收到这个奇怪的错误吗? “ fatal error :调用未定义的函数 empty()”

function newpart($name,$country,$bday_day,$bday_month,$bday_year,$gender,$pass1,$pass2,$email,$option1,$secondOption1,$secondOptionLevel1){ 


$this->name = $name;
$this->country = $country;
$this->bday_day = $bday_day;
$this->bday_month = $bday_month;
$this->bday_year = $bday_year;
$this->gender = $gender;
$this->pass1 = $pass1;
$this->pass2 = $pass2;
$this->email = $email;
$this->option1 = $option1;
$this->secondOption1 = $secondOption1;
$this->secondOptionLevel1 = $secondOptionLevel1;


if( empty($this->name) || empty($this->pass1) ){
$this->errorCount++;
}



}

最佳答案

我有同样的 fatal error ...

在“空”这个词之前,我确实在编辑器中按了 alt + space 而不是 space 。有一个假的空白。

关于php - fatal error : Call to undefined function empty(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12432751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com