PHP array_values() Function

The array_values() function is used to fetch all the values from an array. The function indexes the array numerically.The array_values() function returns an array containing all the values of an array.

Example -

Example -