Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

PHP EMPTY FUNCTION

The empty() function checks to see if a variable is empty or set. The empty() function is often used with if and else conditional statements for $_POST variables in a form. For example, if the name field is empty within a form, an error could be prompted.

if (empty($name)){
echo “Please enter your name!”
}
else {
do this
}