filmov
tv
How To Work With Arrays In PHP - Full PHP 8 Tutorial
Показать описание
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
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
Комментарии