PHP Tutorial – 14 – Foreach Array Loops

Posted by: Admin  :  Category: Php

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

visit www.thenewboston.com for all my tutorials!
Video Rating: 4 / 5

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

25 Responses to “PHP Tutorial – 14 – Foreach Array Loops”

  1. hammadghulam Says:

    let me foreach myself……………..

  2. HawxTeamDelta Says:

    wow this is useful for making calendar

  3. keirnus Says:

    for each elements of $test is treated as $x (one at a time starting from the 1st) and echoed.

  4. TheEliseoReyes Says:

    Great video!

  5. COMMANO38 Says:

    I love the foreach loop :p

  6. nwas555 Says:

    thank you very much for this useful tutorial
    Waled

  7. imwithswat Says:

    CHECK OUT MY CHANEL TO LEARN HOW TO LEARN IT IN ABOUT 17 HOURS

  8. hesham3540 Says:

    like the enhanced for loop in java ! thanks bucky

  9. coolcam262 Says:

    Thank you so much…

  10. TheRealAuxiliary Says:

    Usefull for making websites 🙂

  11. mangoprojects Says:

    Genius. – BehindVFX

  12. mangoprojects Says:

    Genius. – BehindVFX

  13. mangoprojects Says:

    Genius. – BehindVFX

  14. TheErroneousOne Says:

    I would think it’s pretty confusing to the viewer that you keep switching from using single ‘ marks from quotation ” marks. I don’t know PHP very well, but I’m assuming they are some-what interchangeable. The viewer may not though.

  15. cocodibani Says:

    nice

  16. cocodibani Says:

    I’m unsure on how to structure a code correctly to give a command within my WHILE loop after executing an IF statement, can you take a look at this thread i posted? tinyurl [dot] com/y8e8jod thank you

  17. larobertson04 Says:

    I was thinking the same thing.

  18. onnoman Says:

    What is the reason you get arrayarrayarray when you do: echo $test;?

  19. CL0udnyn3 Says:

    I like Array_values as it offers a more complex and detailed view of the array but for a simple view the foreach and for loops you showed work.

  20. CL0udnyn3 Says:

    I don’t understand the significance of $x in PHP as when I change my variable letter to anything other than x it won’t display so i figure $x is something special in PHP?

  21. iamtheeskimofriend Says:

    I agree. If you are going to teach, you need to teach proper syntax. It’s the equivalent to a biology teacher leaving out connective tissue, an english teacher leaving out periods and a math teacher leaving out parentheses that are necessary to solve a problem in the correct order. It would also be useful to explain why a foreach statement is useful in a real world application, because your example doesn’t give the foreach statement the merit it deserves.

  22. iamtheeskimofriend Says:

    Imagine you have a database where there are a LOT more values (hundreds or thousands) it’s far less complicated to type than the for statement.

  23. zimant78 Says:

    well that was abit of a mysterious tutorial as the webpage readout for your code was three. so $x was just the last element of the array, i didnt understand why! thanks no worries i will find out with 5 mins of reading!

  24. r3sp3c791 Says:

    Can somebody tell me for what usefull think I can use that “foreach” because I don’t find sence in it

  25. mKornelius Says:

    Yeah, very nice work there.
    All ready learned alot. And will continue watching your video’s. And hopefully you will keep up the good work? 🙂

Leave a Reply

*