Tutorials and web chats for the How To Code Well Youtube channel

How To Code Well Tutorials and Web Chats

PHP Control Structures Tutorial #2 foreach loops

10/06/2016
297 views
2 liked this
In this How To Code Well PHP video tutorial you will learn how to use the PHP foreach loops to iterate over a PHP array.

I use a real world example of a E commerce shopping cart that has a orders array. This array contains keys which make up the order title and its values are the items costs.
We loop over the orders array outputting each order item and its costs as well as calculate a running total of the order items.

The PHP tutorial I will demonstrate

How to use foreach loops
How to access the key and values of each array item
How to run a calculation based on the array values

Get the full course with no adverts at skillshare with 2 months free:
http://skl.sh/2xXyUyA

PHP study books
=======================

PHP Objects, Patterns, and Practice
http://amzn.to/2sH53wx

PHP Web Services: APIs for the Modern Web
http://amzn.to/2tqiyOl

- PHP Cookbook: Solutions & Examples for PHP Programmers
http://amzn.to/2uqtgUU

----------------------------------------------------------------
How To Code Well YouTube Channel:
https://www.youtube.com/user/howtocodewell
Become a patron: https://www.patreon.com/howToCodeWell

This is a programming tutorial/web chat from the How To Code Well series.

To find out more about this series and to view other videos click here:
http://peterfisher.me.uk/how-to-code-well/


Other links web development chats and tutorials

MYSQL Console Tutorial #1 Basics
https://www.youtube.com/watch?v=4XX7X7upEIU

What Defines a Great Web Developer
https://www.youtube.com/watch?v=LZV1UMVFexc

Why Deploying Websites Via FTP Is BAD
https://www.youtube.com/watch?v=WVOyTTeASEg

Docker Machine Tutorials
https://www.youtube.com/watch?v=OJTOZsDvubw&list=PLZdsdjcJ44WWBHkRiBzspcfhf_YuIOCGn

PHP Tutorials
https://www.youtube.com/watch?v=wj-9rGCqq58&list=PLZdsdjcJ44WWmumIsh-KduiU4PTooGuBz

MYSQL Tutorials
https://www.youtube.com/watch?v=-HkOQWlzLIs&list=PLZdsdjcJ44WVBkq0CNfawyI5eXOOcnRxG

======== MY COURSES AND BOOKS ========

Docker in Motion: http://bit.ly/2vvz2sA
Skillshare courses: http://skl.sh/2gI33M5
Udemy courses: http://bit.ly/2iGhvIE

======== SUPPORT THE CHANNEL ========

Become a Patron: http://bit.ly/2hmVKwX
Donate: https://www.paypal.me/howToCodeWell
Support the stream: https://streamlabs.com/howtocodewell
Help translate the videos: http://bit.ly/2iEyxXB

======== SUBSCRIBE TO THE NEWSLETTER ========

http://bit.ly/2fPlG3v

======== FOLLOW ME ========

Blog: http://peterfisher.me.uk
Facebook: http://facebook.com/howtocodewell/
Instagram: http://instagram.com/howtocodewell/
Twitter: http://twitter.com/howToCodeWell
Pintrest: http://pinterest.co.uk/howtocodewell/
Twitch: http://twitch.tv/howtocodewell

======== MY TALKS ========

How to put your Docker image on a diet: http://bit.ly/2y5KMly

======== RECOMMENDED PROGRAMMING RESOURCES ========

Microservices in Action: http://bit.ly/2xIi4oh
Get Programming in Javascript: http://bit.ly/2gx2G6A
ES6 in Motion: http://bit.ly/2xJ3i0z
PHP Web Services: APIs for the Modern Web: http://amzn.to/2tqiyOl
Responsive Web Design with HTML5 and CSS3: http://amzn.to/2tSo6nH