# 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!

### Lessons
- [Lesson #1: Introduction to PHP](/content/classes/php/introduction/index.html)  
  This is the beginning of the Getting Started with PHP class. Here you will get started with writing PHP code!
- [Lesson #2: Syntax and Comments](/content/classes/php/syntax-comments/index.html)  
  Learn the basic syntax of PHP in this lesson including how to echo text on the page and leaving comments.
- [Lesson #3: Variables and Constants](/content/classes/php/variables-constants/index.html)  
  Variables and constants hold data for us. Learn how to declare, initialize, and reassign them in PHP.
- [Lesson #4: Primitive Data Types](/content/classes/php/primitive-data-types/index.html)  
  Primitive data types are the fundamental building blocks of data. This lesson will go over all the primitive data types supported in PHP.
- [Lesson #5: Math: Operators, Properties, and Methods](/content/classes/php/math/index.html)  
  Learn about how to do arithmetic and work with the math properties and methods provided natively by PHP.
- [Lesson #6: Ifs, Else Ifs, Switch](/content/classes/php/logic-conditionals/index.html)  
  Logic and conditionals are a fundamental part of PHP and is how your program or script can make decisions.
- [Lesson #7: Loops](/content/classes/php/loops/index.html)  
  Learn how to shorten and improve your code by utilizing loops like for loops, while loops, do while loops, and for in loops.
- [Lesson #8: Functions](/content/classes/php/functions/index.html)  
  Functions in PHP allow you to reuse a code block and reduce code repetition which ensures cleaner and more modular code.
- [Lesson #9: Arrays](/content/classes/php/arrays/index.html)  
  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.
- [Lesson #10: Classes and Objects](/content/classes/php/classes-objects/index.html)  
  Classes in PHP provide a blueprint for the creation of objects which helps organize our code and reduce complexity.
- [Lesson #11: Date and Time](/content/classes/php/date-time/index.html)  
  Learn how to express and work with dates and time using PHP's built-in date and time classes and functions.
- [Lesson #12: Forms](/content/classes/php/forms/index.html)  
  Learn how to make your website more dynamic by handling input data from forms using GET and POST requests!
- [Lesson #13: File Include and Require](/content/classes/php/include-require/index.html)  
  PHP allows you to include the contents of another PHP file anywhere you want by using the include and require functions.
- [Lesson #14: File System and IO](/content/classes/php/file-system/index.html)  
  Learn how to work with the file system in PHP including how to open, read, write, append, and close a file.
- [Lesson #15: Encoding and Decoding JSON](/content/classes/php/json/index.html)  
  JSON is a lightweight and readable data transfer format. Learn how to encode and decode JSON in PHP.
- [Lesson #16: Cookies](/content/classes/php/cookies/index.html)  
  Cookies are small pieces of data that you can store on the client. Learn how to work with them in PHP.
- [Lesson #17: Sessions](/content/classes/php/sessions/index.html)  
  PHP sessions allow you to store temporary information about a user on the server like logged-in state or username.
- [Lesson #18: Mail](/content/classes/php/mail/index.html)  
  Learn how to send text and HTML mail dynamically in PHP using its built-in mail functions and variables.
- [Lesson #19: Regular Expressions](/content/classes/php/regular-expressions/index.html)  
  Learn how to use regular expressions search patterns in PHP to match text and do advanced find and replace operations.
- [Lesson #20: MySQL Database](/content/classes/php/database/index.html)  
  Learn how to use PHP with MySQL databases, the most popular database management software, with PDO and its functions.
- [Lesson #21: Error Handling](/content/classes/php/error-handling/index.html)  
  No code is ever perfect, so you'll need to know how to handle and log errors and exceptions when they occur.
- [Lesson #22: Exception Handling](/content/classes/php/exception-handling/index.html)  
  Learn how to handle exceptions so that when they happen you can recover gracefully and allow for the script to continue.
- [Lesson #23: Conclusion and Wrap Up](/content/classes/php/conclusion/index.html)  
  This lesson is the last lesson of the Getting Started with PHP class and serves as the conclusion of the class.
