PHP empty function with Example
Here is the best example of the PHP Empty Function. The empty() function is an inbuilt function in PHP also checking variable for null value zero value.
empty()
This function is return the Boolean value. True of False. If variable or array string are empty then return true.
Example
<?php
$var = "";
if(empty($var)) {
echo 'Variable is empty';
}
?>