Write a code to print fibonacci series in PHP. In this tutorial, We are going to learn how to write a fibonacci series program in PHP using recursion as well using iterative approach.
Given a number N, we have to write a PHP script which prints Fibonacci series from 1 to N, where N is an input integer.