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