1--TEST--
2Test array_push() function : usage variations - position of internal array pointer
3--FILE--
4<?php
5/*
6 * Check the position of the internal array pointer after calling array_push()
7 */
8
9echo "*** Testing array_push() : usage variations ***\n";
10
11$stack = array ('one' => 'un', 'two' => 'deux');
12$var0 = 'zero';
13
14echo "\n-- Call array_push() --\n";
15var_dump($result = array_push($stack, $var0));
16
17echo "\n-- Position of Internal Pointer in Original Array: --\n";
18echo key($stack) . " => " . current ($stack) . "\n";
19
20echo "Done";
21?>
22--EXPECT--
23*** Testing array_push() : usage variations ***
24
25-- Call array_push() --
26int(3)
27
28-- Position of Internal Pointer in Original Array: --
29one => un
30Done
31