1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/tests/lang/bug23624.phpt
2003-07-01 19:06:04 +00:00

13 lines
257 B
PHP

--TEST--
Bug #23624 (foreach leaves current array key as null)
--FILE--
<?php
$arr = array ('one', 'two', 'three');
var_dump(current($arr));
foreach($arr as $key => $value);
var_dump(current($arr));
?>
--EXPECT--
string(3) "one"
bool(false)