1--TEST--
2Test current() function : basic functionality
3--FILE--
4<?php
5/*
6 * Test basic functionality of current()
7 */
8
9echo "*** Testing current() : basic functionality ***\n";
10
11$array = array ('zero', 'one', 'two', 'three' => 3);
12var_dump(current($array));
13next($array);
14var_dump(current($array));
15end($array);
16var_dump(current($array));
17next($array);
18var_dump(current($array));
19?>
20--EXPECT--
21*** Testing current() : basic functionality ***
22string(4) "zero"
23string(3) "one"
24int(3)
25bool(false)
26