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:

Share: