<?php $a = [ 'c1' => '10', 'c2' => '20', 'c3' => '10.50', 'c4' => '19.99' ]; $rand = rand (0,(count($a)-1)); $reIndexedAray = array_values($a); echo $reIndexedAray[$rand];
You have javascript disabled. You will not be able to edit any code.