1--TEST--
2Test current() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : mixed current(array $array_arg)
6 * Description: Return the element currently pointed to by the internal array pointer
7 * Source code: ext/standard/array.c
8 */
9
10/*
11 * Test basic functionality of current()
12 */
13
14echo "*** Testing current() : basic functionality ***\n";
15
16$array = array ('zero', 'one', 'two', 'three' => 3);
17var_dump(current($array));
18next($array);
19var_dump(current($array));
20end($array);
21var_dump(current($array));
22next($array);
23var_dump(current($array));
24?>
25===DONE===
26--EXPECT--
27*** Testing current() : basic functionality ***
28string(4) "zero"
29string(3) "one"
30int(3)
31bool(false)
32===DONE===
33