Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How To Work With Arrays In PHP - Full PHP 8 Tutorial
Play lesson

Learn PHP The Right Way - Full PHP Tutorial For Beginners & Advanced - How To Work With Arrays In PHP - Full PHP 8 Tutorial

Master PHP 8 in Style: From Basics to Building Dynamic Apps with Program With Gio

4.0 (0)
14 learners

What you'll learn

Learn to install and configure PHP and web servers effectively
Understand and utilize PHP data types and operators for code efficiency
Master PHP's OOP concepts, including classes, interfaces, and inheritance
Implement security measures like CSRF, XSS protection, and session management

This course includes

  • 34.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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 ⭐ Become a Patreon: https://www.patreon.com/programwithgio THANK YOU! LESSON 1.26 Course Outline - https://github.com/ggelashvili/learnphptherightway-outline Course Playlist - https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe- RESOURCES https://www.php.net/manual/en/ref.array.php 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

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere