PHP Arrays Tutorial – Learn PHP Programming


Upgrade your Clever Techie learning experience:

UPDATE! (9/13/19) New features and improvements for Clever Techie Patreons:

1. Download full source code with detailed comments – easy to learn and understand code
2. Weekly source code file updates by Clever Techie – every time I learn new things about a topic I will add it to the source file and let you know about the update – keep up with the latest coding technologies
3. Library of custom Clever Techie functions with descriptive, easy to understand comments – skyrocket coding productivity, code more efficiently by using Clever library of custom re-usable functions
4. Syntax code summary – memorize and review previously learned code faster
4. Organized file structure – access all Clever Techie lessons, source code, graphics, diagrams and cheat sheet from a single workspace – no more searching around for previously covered material and source code – save enormous amount of time and effort
5. Outline of topics the source file covers – fast review of all previously learned coding lessons
6. Access to all full HD 1080p videos with no ads
7. Console input examples – interactive examples that make it easier to understand and learn coding
8. Access to updated PHP Programming Book by Clever Techie
9. Early access to Clever Techie videos

Subscribe to Clever Techie patreon:

““““““““““““““““““““““““““““““““““““““““““““““` In this PHP arrays tutorial, we cover basic PHP array syntax as well as advanced concepts like multidimensional arrays.

We use a built-in PHP function to read the directory with file names into a numeric PHP array. We then convert this numeric array into an associative array so that information is neatly organized.

Finally we use foreach loop to loop over the associative array and create nice looking HTML table out of movie names, cover images and release years. This video will give you a good understanding of PHP arrays and how useful they can be when working with data.

Hey guys, I’m now using Patreon to share improved and updated video lesson material. For a small fee you can access all the downloadable files from this lesson (source code, icons & graphics, cheat sheets) and everything else included in the video from the Patreon page. Additionally, you will get access to ALL Clever Techie videos in HD format with no ads. Thank you so much for supporting Clever Techie 🙂

Download this video’s files here:

( You also get access to ALL source code and any downloadable content of ALL Clever Techie videos, as well as access to ALL videos in HD 1080p quality format with all video ads removed! )


( Website ) – PHP, JavaScript, WordPress, CSS, and HTML tutorials in video and text format with cool looking graphics and diagrams.

( YouTube Channel )

( Google Plus ) – clever techie video tutorials.

( Facebook )

( Twitter )



Xem thêm bài viết khác:


  1. I had to come back and say thanks, this was a very helpful video when I started getting into php a couple of years ago for work and helped me a lot . I use what I learned back then on a daily basis now and have been able to do some really cool stuff (even built a few apps in c#) , thanks again

  2. geees i couldn't even copy down properly the styles lol. images are displayed vertical vith years messed up)

  3. I tried with mp4 files but it display only last file. Would you please show me how I can display all files like jpg files.

  4. if you are gonna teach us about arrays, please only teach us how they work instead of doing a bunch of extra stuff that we aren't interested in

  5. Thanks for this great tutorial.
    I have a question plz
    Was there no other approach than to have a two-dimensions array(image, year) inside the one-dimension movie names array?

  6. PLEASE HELP! Can't print out images to the browser
    foreach ($music as $names => $info){
    $content = "<td><span class = 'name'>$music_name</span><br/>"
    ."<img scr ='/covers/$info[image]'><br/>"
    ."<span class = 'year'>( $info[year] )</span></td>";

  7. It is not possible to "download" the file, LIAR.
    At least have the decency to tell people that you feel you must screw them out of $5 for your outdated material.

  8. Apa itu PHP Array? Bagaimana Cara Menggunakan PHP Array?

  9. thx alot..functions and arrays are fun with ur vedios..
    could you please explain what is best to store data as performance of sites it array or tsble?


Please enter your comment!
Please enter your name here