PHP Array Data Type - Indexed, Associative & Multi-Dimensional Arrays - Full PHP 8 Tutorial @ProgramWithGio
PHP Array Data Type - Indexed, Associative & Multi-Dimensional Arrays - Full PHP 8 Tutorial  @ProgramWithGio
Uploaded December 2020 | Updated November 2026, 3 hours ago
In PHP you can have regular index-based arrays also known as indexed arrays, you could also have arrays with custom keys also known as associative arrays & can have arrays within arrays which are called multi-dimensional arrays. You will learn all that you need to know about arrays to get started using them goes over how arrays are indexed by default & how re-indexing happens. Also, you will learn how to check if an element exists in an array at the specific key & the difference between array_key_exists & isset().

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
πŸ‘ Smash the like button
🀝 Subscribe to the channel & turn the notifications on
πŸ’¬ Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: patreon.com/programwithgio
THANK YOU!

LESSON 1.10
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

CHAPTERS
00:00 - Intro
00:43 - What are arrays
01:27 - Indexed arrays & accessing elements
03:06 - Undefined array key
03:41 - Check if array key exists - isset()
04:04 - Mutate arrays
04:52 - Get length of array - count()
05:04 - Add elements to an array - square bracket syntax
05:37 - Add multiple elements to an array using array_push
06:05 - Name your keys (associative arrays)
07:11 - Add elements to associative arrays at specified keys
07:45 - Multi-dimensional arrays
10:02 - Duplicate keys & overwriting
11:18 - Having keys on only some elements & how automatic indexing works
12:05 - Removing an element from the end of an array using array_pop
12:27 - Removing an element from the beginning of an array using array_shift & re-indexing
13:14 - Removing element(s) from arrays by specifying keys using unset
13:59 - Using unset() does not re-index arrays
15:00 - Casting to arrays
15:27 - Another way to check if the key exists in array & the difference between array_key_exists & isset()
PHP Array Data Type - Indexed, Associative & Multi-Dimensional Arrays - Full PHP 8 TutorialPHP Superglobals - Basic Routing Using The Server Info - Full PHP 8 TutorialAjax Request Validation - Build Expense Tracker App With PHP 8Set Up Email Verification For New Users - Build Expense Tracker App With PHP 8Section 2 review & exercise project - Full PHP 8 TutorialLearn Laravel The Right Way Course Coming SoonImplement Authorization Using Doctrine Filters - Build Expense Tracker App With PHP 8Working with Route Parameters in Laravel | Learn Laravel The Right WayHow To Work With Arrays In PHP - Full PHP 8 TutorialHow to add Account Profile & Password Update feature to Laravel Fortify SPAHow to add Two-Factor Authentication to Laravel Fortify SPA - Laravel 2FAPHPUnit Tutorial Part 2 - Mocking - Full PHP 8 Tutorial
Program With Gio |

PHP Array Data Type - Indexed, Associative & Multi-Dimensional Arrays - Full PHP 8 Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER