Proper way to declare a function in PHP?
<p>I am not really clear about declaring functions in php, so I will give this a try.</p>

<pre><code>getselection();

function getselection($selection,$price)
{
global $getprice;
switch($selection)
{
  case1: case 1:
  echo "You chose lemondew &lt;br /&gt;";
  $price=$getprice['lemondew'].'&lt;br&gt;';
  echo "The price:".$price;
 break;
</code></pre>

<p>Please let me know if I am doing this wrong, I want to do this the correct way; in addition, php.net has examples but they are kind of complex for a newb, I guess when I become proficient I will start using their documentation, thank you for not flaming.</p>

<p>Please provide links that might also help me clear this up?</p>
