Pre-loading array values into a function
<p>I am not sure if I am doing this correctly,pre-loading my array values for coins with the function defaultcoindload();</p>

<pre><code>defaultcoindload();
function defaultcoindload()
{
/*Have the coin loads up to a maximum of a 1.00 dollar in value:
An associative array-ID key is associated with  value(ID is Nickels with value of 20).
$money = array("Nickels"=&gt;20, "Dimes"=&gt;10, "Quarters"=&gt;10);
The array code for $money above  is  the same as the array code below,
with the difference being the structure and the ID keys can be accessed in a script*/

if ($money &lt; 1.00)
{
echo "money";
}
else if($money = $insertcoins[$selection])
{
echo "$selection";
}


 $money['Nickels'] = "20";
 $money['Dimes'] = "10";
 $money['Quarters'] = "10";
 echo "The value of Nickels is " . $money['Nickels'] ." cents.";
</code></pre>

<p>Furthermore is it even legal to do this:</p>

<pre><code>function getselection($selection,$price)
{
</code></pre>

<p>Have another function or multiple functions inside of the original function defaultcoinload(), I think it is just need a little clarification, thank you, for not flaming.</p>
