Creating AND Traversing a Multidimensional PHP Array 👨‍💻 [TUTORIAL] 👨‍💻

Published: 23 January 2023
on channel: Numelion Web
1,018
11

▶ PHP Training for Beginners: https://www.numelion.com/go/formation...
▶ Book to Learn PHP in 7 Days: https://www.numelion.com/go/livre-php

How to Create and Iterate Over a Multidimensional Array in PHP with a Foreach Loop? In this video tutorial, we'll see how to do it step by step.

A multidimensional array is an array of arrays, or, in other words, a two-dimensional array. So, we'll create an array within our first array.

Creating a multidimensional array in PHP is actually quite simple. The most important thing to remember is that a multidimensional array is an array of arrays. Therefore, when you create a multidimensional array, you are essentially creating an array of arrays.

The first thing to do is create an array. To do this, you can use the array() function. For example:

$array = array();

This will create an empty array. You can also use the array() function to create an array with values.

We'll see how to proceed step by step.

#php #programming #array

Table of Contents:

00:00 - Introduction
00:35 - Creating a PHP multidimensional array
03:20 - Searching for information in the array
05:06 - Iterating through the multidimensional array with Foreach
07:10 - Retrieving and displaying all array elements
10:20 - Indexed multidimensional array (without keys)
13:20 - Your opinion is important

The first videos on PHP programming:

1 - Creating a PHP script:    • Créer un Script en PHP 👨‍💻 [TUTORIEL POUR ...  
2 - Creating a variable:    • Créer / Déclarer une Variable en PHP en 5m...  
3 - Creating a condition:    • Créer / Utiliser des Conditions PHP | If E...  
4 - Creating a loop:    • Créer une Boucle en PHP | While - For - Do...  
5 - Creating an array:    • Créer / Utiliser les Tableaux dans PHP 👨‍💻...  

🎓 Free & open access CUSIBAW training: https://numelion.com/go/cusibaw
🎓 My programs: https://numelion.com/go/programmes

❓ Survey to create a project with the web: https://www.numelion.com/go/qpw
🌐 Website ▶ https://numelion.com/go/yt-numelion


On this page of the site you can watch the video online Creating AND Traversing a Multidimensional PHP Array 👨‍💻 [TUTORIAL] 👨‍💻 with a duration of hours minute second in good quality, which was uploaded by the user Numelion Web 23 January 2023, share the link with friends and acquaintances, this video has already been watched 1,018 times on youtube and it was liked by 11 viewers. Enjoy your viewing!