I have an associative array with strings as keys and I want to list all the keys and corresponding values in the order in which it was input. For example:
$arr=array();
$arr['tree']='leaves';
$arr['fruits']='seed';
and output should be like :
keys : tree, fruits
values : leaves,seed