title: Return Value from PHP array
body: <pre><code>&lt;?php
    $change=.07;
    $coins=array(
  ".01"=&gt;"1 Penny",
  ".02"=&gt;"2 Pennys",
  ".03"=&gt;"3 Pennys",
  ".04"=&gt;"4 Pennys",
  ".05"=&gt;"5 Pennys",
  ".06"=&gt;"6 Pennys",
  ".07"=&gt;"7 Pennys",
  ".08"=&gt;"8 pennys",
  ".09"=&gt;"9 Pennys",
  ".10"=&gt;"1 Dime",
  ".11"=&gt;"1 Dimes and 1 Penny",
  ".12"=&gt;"1 Dime and 2 Pennys",
  ".13"=&gt;"1 Dime and 3 Pennys",
  ".14"=&gt;"1 Dime and 4 Pennys",
  ".15"=&gt;"1 Dime and 5 Pennys",
  ".16"=&gt;"1 Dime and 6 Pennys",
  ".17"=&gt;"1 Dime and 7 Pennys", 
  ".18"=&gt;"1 Dime and 8 Pennys",
  ".19"=&gt;"1 Dime and 9 Pennys",
  ".20"=&gt;"2 Dimes",
  ".21"=&gt;"2 Dimes and 1 Penny",
  ".22"=&gt;"2 Dimes and 2 Pennys",
  ".23"=&gt;"2 Dimes and 3 pennys",
  ".24"=&gt;"2 Dimes and 4 Penny",
  ".25"=&gt;"1 Quarter",
  ".26"=&gt;"1 Quarter and 1 Penny",
  ".27"=&gt;"1 Quarter 2 Pennys",
  ".28"=&gt;"1 Quarter 3 Pennys",
  ".29"=&gt;"1 Quarter and 4 Pennys",
  ".30"=&gt;"1 Quarter and 5 Pennys",
  ".31"=&gt;"1 Quarter and 6 Pennys",
  ".32"=&gt;"1 Quarter and 7 Pennys",
  ".33"=&gt;"1 Quarter and 8 Pennys",
  ".34"=&gt;"1 Quarter and 9 Pennys",
  ".35"=&gt;"1 Quarter and 1 Dime",
    );
    ?&gt;
  </code></pre>
  
  <p>How do I get $change to be displayed as the second value for an array. So if $change was .25 I would want it to print "1 Quarter". Also in my actual code $change changes each time you run it.</p>