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

preview_player
Показать описание
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
THANK YOU!

LESSON 1.10

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()
Рекомендации по теме
Комментарии
Автор

I'm still here commenting on your videos!
You are really making my path to learning PHP much easier than I thought it would be.
You did an amazing job, really.
Thank you!

YourZenZonee
Автор

This is not a course about how to program in PHP, but how to do it with love and best right way!
Thanks forever!

magnomani
Автор

I've never seen a tutorial so quick yet thorough and understandable at the same time. You covered everything in such a short amount of time while keeping it clear.

Excellent, excellent video. The whole series actually. This would be my go-to suggestion for new or experinced devs

colonelvector
Автор

I now understand why my tutors in school hammered us on the fundamentals of programming. My fundamentals are good right now and I don't find it hard to switch to another programming language anymore. Of course, I don't know the ins and outs of that programming language, but I can build things as soon as I know the syntax of the language I am working with. Just like now, I can just go fast through your videos. Just wanted to let you know that your videos are very clear for beginners. Thank you for this series, I think I will learn when I get to your more advanced stuff about classes and such things.

KaraSuraDraw
Автор

You are doing a great job, I ll definetely recomend this series to others.

manolisgkoulias
Автор

This course and channel is WAY underrated. Good job with your videos man!

hexdom
Автор

Wow you showed me everything behind arrays in php. thank you so much! nice videos.

guxtavp
Автор

Thank you very much for the time and effort to give this great piece a little or no cost. It is precise, simple. Thanks once again.

sampulcodemine
Автор

It's impossible to do without arrays. Thanks for the video!

zhozfem
Автор

I love your tutorials, clear and concise, and straight to the point, thank you so much for bringing out this series. If it's possible please bring a series just like this on the Laravel framework, I'll be happy to support you.

averageProgrammer
Автор

A big shoutout to Gio for his generosity in sharing his PHP expertise!

SynMlyn
Автор

i'm not just learning great things, i'm reallyy ENJOOOYING

iqorimane
Автор

This series is so well done, I'm amazed. Well paced, well explained, and so complete, there are infos that I couldn't find in any other course, probably not for total beginners, but definitely of a quality that is very rare to find.

ShinigamiAnger
Автор

Best stuff for learning php I got in to so far! I must say I feel lucky I got here somehow.

jewgienijbrzozowski
Автор

This is the second time I have watched this video. And I have a deeper understanding of some knowledge.

jessieren
Автор

Whoop! This was a long one 😄

Never knew I could use something like, [...., 30 => 'value', 'other', 'another'....]

alnahian
Автор

Thanks for this amazing video! They don't teach it like this in school.

nielsmartens
Автор

I had never seen this kind of informative video about arrays.
Love from Bangladesh.

RakibulIslam-cpoi
Автор

WOW !
To the point, understandable, really really great !

Wai_
Автор

This is a really well made course, thank you!

CartmanMthrFckr