xref: /php-src/tests/lang/empty_variation.phpt (revision da3c0d39)
1--TEST--
2empty() on array elements
3--FILE--
4<?php
5$a=array('0','empty'=>'0');
6var_dump(empty($a['empty']));
7var_dump(empty($a[0]));
8$b='0';
9var_dump(empty($b));
10?>
11--EXPECT--
12bool(true)
13bool(true)
14bool(true)
15