Week 2: Dynamic HTML with PHP
🗓 Week of September 10
Concepts
PART 1
PHP Arrays
We will learn about the different types of arrays in PHP, and how to create and use them.
PART 2
PHP Loops
We will learn about the different type of loops, how to create them, and when to use each type.
PART 4
PHP Error Handling
Errors in your code are going to happen and it can be frustrating trying to find and fix those errors. We will learn about tools that can help us handle errors quickly and effectively.
Practice
In-Class Exercise
Deck of Cards
Creating all 52 cards of a standard deck with HTML would be tedious, but we could accomplish the task much faster with PHP.
Using what you have learned about arrays, loops, and generating HTML with PHP to create all a deck of cards.
Individual Assignment
Dominoes with PHP
For this assignment you will be demonstrating your skills and understanding of using PHP to create HTML to randomly generate 100 dominoes on the page.
Independent Study
php.net
PHP Math Functions
Whether you are trying to calculate the cos of an angle, find the square root of a number or just need a random integer, there is a PHP Math Function for that. Review the PHP Math Functions documentation to learn more.
PluralSight
Try PHP - Conditionals & Operators / Loops
Watch the last two part of this four-part course that explore the basics of PHP and learn what it takes to work within the one of the most popular web languages.