/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/heap_007.phpt
--TEST-- SPL: SplHeap: iteration through methods --FILE-- <?php $h = new SplMaxHeap(); $h->insert(1); $h->insert(5); $h->insert(0); $h->insert(4); $h->rewind(); echo "count(\$h) = ".count($h)."\n"; echo "\$h->count() = ".$h->count()."\n"; while ($h->valid()) { $k = $h->key(); $v = $h->current(); echo "$k=>$v\n"; $h->next(); } ?> --EXPECT-- count($h) = 4 $h->count() = 4 3=>5 2=>4 1=>1 0=>0
Copyright ©2k19 -
Hexid
|
Tex7ure