A PHP function for the Fibonacci sequence

I was recently asked as a test to write a function that outputs the Fibonacci sequence in PHP. Here it is:

Leave a Reply

Your email address will not be published. Required fields are marked *