1--TEST-- 2Test array_values() function : basic functionality 3--FILE-- 4<?php 5/* Prototype : array array_values(array $input) 6 * Description: Return just the values from the input array 7 * Source code: ext/standard/array.c 8 */ 9 10/* 11 * Test basic functionality of array_values() 12 */ 13 14echo "*** Testing array_values() : basic functionality ***\n"; 15 16 17// Initialise all required variables 18$input = array('zero', 'one', 'two', 'three' => 3, 10 => 'ten'); 19 20// Calling array_values() with all possible arguments 21var_dump( array_values($input) ); 22 23echo "Done"; 24?> 25--EXPECT-- 26*** Testing array_values() : basic functionality *** 27array(5) { 28 [0]=> 29 string(4) "zero" 30 [1]=> 31 string(3) "one" 32 [2]=> 33 string(3) "two" 34 [3]=> 35 int(3) 36 [4]=> 37 string(3) "ten" 38} 39Done 40