Can't use constants with empty()?
刘磊
刘磊 2018-11-01 16:04:04
0
2
1406

parent::_initialize();//The initialization operation in the inherited parent class is different from what the teacher said

In addition, if(empty(USER_ID)) reports an error, if(USER_ID!=null )Can.

刘磊
刘磊

reply all(2)
BestModer
bool empty ( mixed $var )

Determines whether a variable is considered empty. When a variable does not exist, or its value is equal to FALSE, then it is considered not to exist. empty() does not generate a warning if the variable does not exist.

It means that empty is used to detect variables; Attached link

鸿运达

empty() detects variables, right

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template