Return all the values of an array (not the keys):
The array_values() function returns an array containing all the values of an array.
Tip: The returned array will have numeric keys, starting at 0 and increase by 1.
Parameter | Description |
---|---|
array | Required. Specifying an array |
Return Value: | Returns an array containing all the values of an array |
---|---|
PHP Version: | 4+ |