PHP: empty() function

Last update on January 08 2019 11:58:44 (UTC/GMT +8 hours)

Description

The empty() function is used to check whether a variable is empty or not. Often, you may encounter a scenario, when you need to code
in fashion if a variable is empty or another thing if it is not so. In these situations, empty function comes to rescue.