From the course: Learning PHP
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Calculating the Fibonacci sequence - PHP Tutorial
From the course: Learning PHP
Challenge: Calculating the Fibonacci sequence
(upbeat electronic music) - [Instructor] The Fibonacci sequence is a great way to learn how loops work. If you don't know, the Fibonacci sequence is a series of numbers in which the next number is calculated by adding the two previous numbers. So the first few entries in the Fibonacci sequence would be one, one, two, three, five, eight, and so on. In this challenge, you'll print the numbers of the Fibonacci sequence without going over 200. There's no starter file for this one. You'll just be starting with a blank PHP file.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.