How To Work With Arrays In PHP - Full PHP 8 Tutorial

preview_player
Показать описание
In this PHP tutorial, you will learn how to work with arrays in PHP using various built-in array functions. You will learn how to merge, sort, map, filter, search, reduce, combine, chunk, destructure arrays & more.

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.26

RESOURCES

CHAPTERS
00:00 - Intro
00:25 - Chunk an array into a list of smaller chunks of arrays - array_chunk
01:15 - Combine arrays to form a new array - array_combine
01:58 - Filter array - array_filter
03:10 - Re-index array - array_values
03:30 - Filter array with no callback - array_filter
03:49 - Get keys of an array - array_keys
04:33 - Iterate over array elements & apply callback - array_map
06:10 - Merge arrays - array_merge
07:10 - Reduce array to a single value - array_reduce
08:35 - Search for a value in an array & find its key - array_search
09:56 - Alternative way to check if an item exists in the array - in_array
10:23 - Find the difference between arrays by comparing values - array_diff
11:01 - Find the difference between arrays by comparing both keys & values - array_diff_assoc
11:33 - Find the difference between arrays by comparing keys - array_diff_keys
11:46 - Sort array by values - asort
12:08 - Sort array by keys - ksort
12:28 - Sort array by using custom function - usort
13:19 - Array destructuring
Рекомендации по теме
Комментарии
Автор

I agree with most of the comments. This course is great, because you go into detail about things and explain very clearly. It's great to have a solid grasp of the language. Thank you for this great contribution that most programmers will surely appreciate a lot!!!

rgamezdiaz
Автор

your course have lot of complexity and you are going by your own pace

BipsonMukhiya
Автор

Happy to see the guys in the comments that are appreciating you, You do really deserve it man.Please keep it going master.I can not wait to get to the project tutorial.

Armando-pxhi
Автор

Once again, you don't disappoint.
Best tut on PHP arrays ever made !
Hope we're doing some simple/cool PHP project in the near future.

jipeejoce
Автор

Probably one of the best Php tuts going around. Would love to see more advanced Php videos. Keep it up 👍🏻

alonglongchar
Автор

thanks for all man, you´re the best!!!

lucassimas
Автор

Only halfway through, amazing guide thank you!!!

octavian
Автор

Thank you very much. Best tutorial on PHP arrays ever made !
Greetings from Bangladesh.

tawfiqsict
Автор

Thank you very much for the great efforts put in this great course. I enjoy every minute of it.

ahmaddokmak
Автор

I appreciate all of your hard work, and waiting for some framework tuts in this super mode impatiently.

dostonbekmuminov
Автор

Wow. It's now I'm seeing that we worked with some of these array functions. So handy to be familiar with array functions.
Didn't know I didn't comment on this lesson. sai! Thanks alot Gio

Zubbee
Автор

This tutorial on array functions was very chewy, in a good way. Working that spaceship operator into the callback function really helps me to understand how to use it. <=> is till a bit abstract to me, but your examples and explanations are making it much easier to grasp.
Looking forward to putting all this foundational knowledge into use in a project!
Thanks again for making this course available to everyone.

lotuslando
Автор

Thanks for adding time stamps. They are very convenient.

solutionarium
Автор

Thank you for your effort in conveying the information.. God bless you

mahmoudtaha
Автор

Very good and informative tutorial i have ever seen.thank you dear gio.. Keep it up

developeralimcu
Автор

Thank you very much friend, I have a hard time understanding this about php.
Greetings from Chile.

mariocalcetin
Автор

I have learned a lot from your videos. Thanks a million!

zhozfem
Автор

Finaly got how to use array_reduce, will also use it more often in JS. Great tut, lets see whats next :)

jewgienijbrzozowski
Автор

Thank you Gio. Please how do you advice we practice while following this wonderful series

emekatimothyiloba
Автор

This course is amazing! Thank you very much, you are helping me a lot in this new area that I have just entered! Greetings from Brazil, my friend!

claudiofilho