title: How can I replicate the Excel FV function in PHP?
body: <p>I'm converting some rather complex calculations from an Excel spreadsheet, to PHP. I'm stuck on the conversion of Excel's FV function, which is defined thusly:</p>
  
  <pre><code>FV( interest_rate, number_payments, payment, PV, Type )
  </code></pre>
  
  <p>I've been working on this for 2 hours now, and there has to be something I'm missing. Essentially, I need to replicate this functionality into an equivalent PHP function, taking all of the aforementioned arguments.</p>
  
  <p>Any help would be <em>greatly</em> appreciated.</p>