title: Call a function from another function in PHP
body: <p>I am struggling to implement a php code with the following structure:</p>
  
  <pre><code>public function hookActionValidateOrder($params)
  {
       $invoice = new Address((int)$order-&gt;id_address_invoice);
       $myStreet = $invoice-&gt;address1;
       $myCity = $invoice-&gt;city;
       $myPostcode = $invoice-&gt;postcode;
  
       // ... SOME IRRELEVANT CODE HERE ...
  
       $Tid = send($myStreet, $myCity, $myPostcode); /* Calling function send($a, $b, $c) */
  }
  
  public function send($a, $b, $c)    /* function send($a, $b, $c) */
  {
       // ... CODE TO DO SOMETHING USING VARIABLES $a, $b, $c ...
  }
  </code></pre>
  
  <p>The problem is, this code doesn´t seem to work. 
  When I put it into a code validator, it says: <em>"Function 'send()' does not exists"</em>. Tell me please Why is that so and how do I fix that?</p>