get only values from array code example
Example 1: php array_values
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>
// ["XL","gold"]
Example 2: php array extract value
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>