Return all the values of an array : array_values « Data Structure « PHP






Return all the values of an array

 
<?
$array = array("size" => "XL", "color" => "gold");
array_values($array); 
?>
  
  








Related examples in the same category

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