Learn PHP: Arrays and Loops

Start

Why Learn PHP: Arrays and Loops?

Continue your PHP learning journey! So much of the information that you encounter on the web is arranged in lists—creating and manipulating arrays is an integral component of developing meaningful programs. You will also learn how to use for-loops and while-loops to execute the same code multiple times.

Take-Away Skills

By the end of this course, you will be able to:

  • Create lists of ordered information using arrays.
  • Access and modify individual elements in the array.
  • Use array methods to add and remove information.
  • Perform repetitive actions using loops.

Notes on Prerequisites

We recommend that you complete Learn PHP: Conditionals and Loops before completing this course.

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    Learn about PHP ordered and associative arrays and how this data type is used to store, access and manipulate data.
  2. 2
    Loops are a key way to control the execution of code. Learn how to use them effectively in PHP.

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo
testimonial

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Learn how to use for-loops and while-loops to execute the same code multiple times.

Details

Earn a certificate of completion
4 hours to complete in total
Beginner

Learn about PHP ordered and associative arrays and how this data type is used to store, access and manipulate data.

1 lesson, 1 quiz, 1 project, 1 informational