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