array_values() function returns an array containing all of the values constituting the input array. : array_values « Data Structure « PHP






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

 
//Its syntax is: array array_values(array array)

<?
$great_wines = array ("A" => "a","Q" => "q","E" => "e");

$great_labels = array_values($great_wines);
print_r($great_labels) ;
?>
  
  








Related examples in the same category

1.Return all the values of an array
2.array_values( ) returns an array of all the values in that array
3.Getting and Displaying Counts of Array Values