Easy Tutorial
❮ Func Directory Readdir Func Mysqli Field Count ❯

PHP array_values() Function

Complete PHP Array Reference Manual

Example

Return all the values of an array (without preserving keys):


Definition and Usage

The array_values() function returns an array containing all the values of an array.

Note: The returned array will have numeric keys, starting at 0 and incrementing by 1.


Syntax

Parameter Description
array Required. Specifies the array.

Technical Details

Return Value: Returns an array containing all the values of the array.
PHP Version: 4+
--- ---
❮ Func Directory Readdir Func Mysqli Field Count ❯