/test/subjects/parsing/empty.php
PHP | 21 lines | 15 code | 6 blank | 0 comment | 2 complexity | a86ec67a1dee541bf809e8b5fe4bf708 MD5 | raw file
Possible License(s): GPL-2.0, 0BSD, BSD-3-Clause, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1
- <?php
- if( empty($x) )
- {
- echo "x is empty";
- }
- else
- echo "x is not empty";
- $x = 7;
- if( empty($x) )
- {
- echo "x is empty";
- }
- else
- echo "x is not empty";
- ?>