1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/standard/tests/array/current_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

31 lines
670 B
PHP

--TEST--
Test current() function : basic functionality
--FILE--
<?php
/* Prototype : mixed current(array $array_arg)
* Description: Return the element currently pointed to by the internal array pointer
* Source code: ext/standard/array.c
*/
/*
* Test basic functionality of current()
*/
echo "*** Testing current() : basic functionality ***\n";
$array = array ('zero', 'one', 'two', 'three' => 3);
var_dump(current($array));
next($array);
var_dump(current($array));
end($array);
var_dump(current($array));
next($array);
var_dump(current($array));
?>
--EXPECT--
*** Testing current() : basic functionality ***
string(4) "zero"
string(3) "one"
int(3)
bool(false)