Codeacademy PHP

In this PHP tutorial from Codeacademy: I used functions to print my name in many ways.

I learned how to print a portion of my name ,t, using the substr() function. I also learned how to print my name in upper and lowercase using the strtoupper() and strtolower() functions.

This PHP tutorial taught me the basis of using functions and printing them using PHP.

In this PHP tutorial from Codeacademy, I made the Square class inherit from the Shape class.

I learned about inheritance and how one class can take on properties or methods of another class.

In this PHP tutorial from Codeacademy, I created an array that had 5 elements to it. I then printed the number of elements in the array to the screen.

This PHP tutorial is vital in teaching me the basis of arrays and how to create arrays using the array() function.

Here is the link to Codeacademy.

Textbook Assignment

From the textbook readings, I learned about concatenating strings, creating a calendar or form, and creating a sample HTML Website.

Chapter 1. Concatenating Strings

Concatenation is similar to adding or combining strings. I used variables to combine or put together a string and printing them. This shows how variables can be utilized in PHP. The code and the working link is below.

Concatenating Strings


Chapter 2. Creating Arrays

I created a calendar using arrays which contained drop-down menus. When accessing array elements you must use the foreach loop. The link below is the live drop-down calendar. The code and the working link is below.

Calendar


Chapter 3. Dynamic Websites

I created a sample website and how it utilizes PHP and HTML. I've inserted my name and the class course below the links in the website. The code and the working link is below.

HTML Website