title: PHP Return in nested functions
body: <p>I have a question about my functions. Let me explain, I have two functions:</p>
  
  <pre><code>/* This function works properly
  ; example : echo first('Hello world', 'return');
  */
  function first($string, $return = 'echo')
  {
   if($return == 'echo')
   {
    echo $string;
   }
   else
   {
    return $string;
   }
  }
  </code></pre>
  
  <p>And this is second, function, is calling first function.</p>
  
  <pre><code>/* This function doesn't works
  ; example : echo second('my string', 'return');
  */
  function second($string, $return = 'echo')
  {
   first($string, $return);
  }
  </code></pre>
  
  <p>The problem is I want the second function like that, as simple as above.</p>