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