PHP Control Structures Tutorial #2 foreach loops

PHP Control Structures Tutorial #2 foreach loops

How to code well

55 лет назад

1,536 Просмотров

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 Books:
http://howtocodewell.net/shop/books/php

PHP Hosting from Cloudways:
http://bit.ly/2CB4mWD

----------------------------------------------------------------
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
#php #phpprogramming #howToCodeWell ## Become a channel member
Join the How to code well YouTube channel to get access to premium programming courses, tutorials and member perks
https://www.youtube.com/channel/UCjFs9wBGz4HlEJGUB6jzUmw/join

Тэги:

#PHP #PHP_Control_Structures #Looping_through_a_PHP_array #PHP_foreach_loop #How_to_itereate_over_a_PHP_array #Looping_over_a_php_array #PHP_Tutorial #web_development #learn_web_development #How_to_be_a_programmer #PHP_programming #PHP_for_beginners #web #mysql #html #code
Ссылки и html тэги не поддерживаются


Комментарии: