<?PHP $a = '24'; $b = '0'; $c = ''; if ( ! empty ( $a ) ) { echo 'Variable $a ist gefüllt<br />'; } if ( empty ( $b ) ) { echo 'Variable $b ist empty<br />'; } if ( empty ( $c ) ) { echo 'Variable $c ist empty<br />'; } if ( empty ( $d ) ) { echo 'Variable $d ist empty<br />'; } ?>
Variable $a ist gefüllt Variable $b ist empty Variable $c ist empty Variable $d ist empty