check if data is not empty php code example
Example: php check for empty string
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}