Getting Started with PHP

PHP powers millions of websites on the internet. Take this class to learn how to build dynamic web pages, handle form data, perform database calls, and much more!

23 Lessons Updated 4 months ago PHP Beginner Level
Description

PHP powers millions of websites on the internet. Take this class to learn how to build dynamic web pages, handle form data, perform database calls, and much more!

Course Content
01. 

Introduction to PHP

This is the beginning of the Getting Started with PHP class. In here you will get started with writing PHP code!

6 minutes read
02. 

Syntax and Comments

Learn the basic syntax of PHP in this lesson including how to echo text on the page and leaving comments.

5 minutes read
03. 

Variables and Constants

Variables and constants hold data for us. Learn how to declare, initialize, and reassign them in PHP.

6 minutes read
04. 

Primitive Data Types

Primitive data types are the fundamental building blocks of data. This lesson will go over all the primitive data types supported in PHP.

10 minutes read
05. 

Math: Operators, Properties, and Methods

Learn about how to do arithmetic and work with the math properties and methods provided natively by PHP.

13 minutes read
06. 

Ifs, Else Ifs, Switch

Logic and conditionals are a fundamental part of PHP and is how your program or script can make decisions.

20 minutes read
07. 

Loops

Learn how to shorten and improve your code by utilizing loops like for loops, while loops, do while loops, and for in loops.

15 minutes read
08. 

Functions

Functions in PHP allow you to reuse a code block and reduce code repetition which ensures cleaner and more modular code.

8 minutes read
09. 

Arrays

Arrays are a list of data in PHP. In this lesson, learn how to create, add elements to, remove elements from, and iterate over arrays.

27 minutes read
10. 

Classes and Objects

Classes in PHP provide a blueprint for the creation of objects which helps organize our code and reduce complexity.

14 minutes read
11. 

Date and Time

Learn how to express and work with dates and time using PHP's built-in date and time classes and functions.

7 minutes read
12. 

Forms

Learn how to make your website more dynamic by handling input data from forms using GET and POST requests!

9 minutes read
13. 

File Include and Require

PHP allows you to include the contents of another PHP file anywhere you want by using the include and require functions.

8 minutes read
14. 

File System and IO

Learn how to work with the file system in PHP including how to open, read, write, append, and close a file.

17 minutes read
15. 

Encoding and Decoding JSON

JSON is a lightwweight and readable data transfer format. Learn how to encode and decode JSON in PHP.

6 minutes read
16. 

Cookies

Cookies are small pieces of data that you can store on the client. Learn how to work with them in PHP.

9 minutes read
17. 

Sessions

PHP sessions allow you to store temporary information about a user on the server like logged-in state or username.

7 minutes read
18. 

Mail

Learn how to send text and HTML mail dynamically in PHP using its built-in mail functions and variables.

7 minutes read
19. 

Regular Expressions

Learn how to use regular expressions search patterns in PHP to match text and do advanced find and replace operations.

22 minutes read
20. 

MySQL Database

Learn how to use PHP with MySQL databases, the most popular database management software, with PDO and its functions.

24 minutes read
21. 

Error Handling

No code is ever perfect, so you'll need to know how to handle and log errors and exceptions when they occur.

16 minutes read
22. 

Exception Handling

Learn how to handle exceptions so that when they happen you can recover gracefully and allow for the script to continue.

8 minutes read
23. 

Conclusion and Wrap Up

This lesson is the last lesson of the Getting Started with PHP class and serves as the conclusion of the class.

5 minutes read