PHP Arrays and Control Structures

Treehouse
Course Summary
This course builds on the foundational skills covered in the PHP Basics course. We'll explore conditionals, loops and the compound variable -- arrays. All of which help your write more powerful and intelligent programs using less code.
-
+
Course Description
About this Course This course builds on the foundational skills covered in the PHP Basics course. We'll explore conditionals, loops and the compound variable -- arrays. All of which help your write more powerful and intelligent programs using less code. What you'll learn
- Logical Operators
- Conditionals
- Arrays
- Loops
About the Teacher
When not at her computer, Alena enjoys exploring Portland with her friends and family, including her 3 young children. She also enjoys the Symphony, Cooking, Books, Yarn and Yoga.
-
+
Course Syllabus
PHP Conditionals
Let's dive into conditional, and logical operators as we explore the different options available for expressing conditional statements in PHP. We'll wrap up this first section by creating a script for sending customized messages to high school students at the end of the school year. 11 steps- Introduction 2:54
- Comparison Operators 6:35
- Compare 5 questions
- Negation Operator 7:43
- Nested Conditional Statements 3:50
- Conditionals 5 questions
- Logical Operators 6:39
- Operators 1 objective
- Switch Case Statements 4:28
- School's Out 7:07
- Switch Statements 2 objectives
PHP Arrays
Let's dissect the compound variable type of arrays. This will allow us to store more complex data, such as lists and dictionaries, then manipulate that data in fun and interesting ways. In this section we'll be starting a todo app by storing details about each task including due date and priority. 13 stepsPHP Loops
Explore the different loops available for managing the flow of code in PHP. Loops are a way of repeating code and are very handy for repetitive tasks. We'll use these looping options to complete our todo app as well as create a ping pong game in which we'll examine different use cases for loops. 12 steps