Source Code:
(back to article)
<?php $fruits = ['apple' => 'red', 'banana' => 'yellow', 'orange' => 'orange']; $values = array_values($fruits); print_r($values); // outputs: Array ( [0] => red [1] => yellow [2] => orange )
Result:
Report an issue