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

Publié le: 23 janvier 2023
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Creating AND Traversing a Multidimensional PHP Array 👨‍💻 [TUTORIAL] 👨‍💻 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Numelion Web 23 janvier 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,018 fois et il a aimé 11 téléspectateurs. Bon visionnage!