Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
'; } // An empty integer if(empty(0)) { echo '0 is empty
'; } // An empty float if(empty(0.0)) { echo '0.0 is empty
'; } // An empty string if(empty("")) { echo '"" is an empty string
'; } // null if(empty(null)) { echo 'null is empty
'; } // A value that is not empty if(empty('A')) { echo '"A" is empty
'; } else { echo '"A" is not empty
'; } ?>
$x does not exist
0 is empty
0.0 is empty
"" is an empty string
null is empty
"A" is not empty