mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
13 lines
257 B
PHP
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)
|