title: recursive function that calls on itself not doing anything after calling itself
body: <p>I have a recursive function that calls itself and nothing happens on any of the other calls.
  Meaning, the first time the function is ran though it runs fine, but then when it runs recursively none of those calls do anything.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>&lt;?php
  for($i=0; i&lt;=$arr.length()-1; $i++;){
      function recursiveEcho(string){
          echo $arr[i];
          recursiveEcho($arr[i+1]);
      }
  }
  ?&gt;
  </code></pre>
  
  <p>The real code will be more complicates than an echo and it works fine outside of this function, but when I put it in It doesn't work.</p>