Key Concepts

Review core concepts you need to learn to master this subject

PHP Apending Arrays

$string_array = ["first element", "second element"]; $string_array[] = "third element"; // $string_array is now: ["first element", "second element", "third element"]

In PHP, elements can be added to the end of an array by attaching square brackets ([]) at the end of the array’s name, followed by typing the assignment operator (=), and then finally by typing the element to be added to the array.

Ordered Arrays
Lesson 1 of 2

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