1<?php
2
3$array = array("size" => "XL", "color" => "gold");
4
5print_r(array_values($array));
6
7?>
1$fruits = ["m"=>"banana", "c"=>"Apple" , "a"=>"gray"];
2$newArray = array_values($colors); //new Array with values $fruits array
3echo "<pre>";
4print_r( $newArray );
5
6
7
8//output
9Array
10(
11 [0] => banana
12 [1] => gray
13 [2] => blue
14 [3] => num
15)