Fibonacci Series Program Using PHP

It's only fair to share...Share on Facebook0Share on Google+7Tweet about this on Twitter0Share on LinkedIn3Pin on Pinterest2Digg thisShare on StumbleUpon3

fibonacci series php

Write a Fibonacci Series Program Using PHP? A common interview question for fresher’s. Here in this article we are going to write a program for Fibonacci Series. But before that we have to understand what Fibonacci Series is?

Fibonacci series is a sequence of number generated by adding previous two numbers. If the given number is ‘n’, then Factorial of ‘n’ is defined as ‘Fn’. In mathematical terms, Fibonacci series for ‘n’ number is defined by:  Fn = Fn-1 + Fn-2;

Using For Loop:

Using While Loop:


Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">