Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Iterating with Loops in PHP

via CodeSignal

Overview

Get to know different loops in PHP. In this course, you'll learn about while, do-while, for, and foreach loops, and how to use them efficiently. You'll also explore controlling loop behavior with break and continue statements, and understand nested loops for complex iterations. Each lesson provides practical skills and a clear understanding of loop mechanisms in space scenarios.

Syllabus

  • Lesson 1: Discovering While and Do-While Loops
    • Countdown Basics with Loops
    • Adjust Your Countdown Code
    • Debug the Infinite Loop
    • Fill in the Countdown Code
    • Write Countdown Code from Scratch
  • Lesson 2: Completing Missions with For Loops
    • Space Missions with For Loops
    • Starting Missions in Reverse Order
    • Fixing For Loop Bugs
    • Complete the Spacesuit Preparation Code
    • Write a For Loop
  • Lesson 3: Exploring Arrays with Foreach Loops
    • Exploring with Foreach Loops
    • Changing Variable Names in Foreach
    • Fix Foreach Loop Bugs
    • Complete the Foreach Loop Script
    • Iterating Arrays with Foreach Loops
  • Lesson 4: Navigating Obstacles with Break and Continue
    • Control Loop Execution with Keywords
    • Modify Loop Control Statements
    • Fix Loop Control Errors
    • Complete the Scanning Mission
    • Control Loops from Scratch
  • Lesson 5: Combining Forces with Nested Loops
    • Exploring Nested Loops
    • Switching Nested Loops
    • Fix the Nested Loops
    • Complete the Nested Loops
    • Nested Loops Final Challenge

Reviews

Start your review of Iterating with Loops in PHP

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.