|
emptyDetermine whether a variable is empty Description
bool empty(mixed
$var )
Determine whether a variable is considered to be empty. A variable is considered empty if it does not exist or if its value equals Parameters
Return Values
Returns Examples
Example #1 A simple empty / isset comparison.
Example #2 empty on String Offsets
The above example will output: bool(true) bool(false) bool(false) bool(false) bool(true) bool(true) Notes
|