This is the beginning of the Diving into PHP class. In here you will get started with writing PHP code!
Learn the basic syntax of PHP in this lesson including how to echo text on the page and leaving comments.
Variables and constants hold data for us. Learn how to declare, initialize, and reassign them in PHP.
Primitive data types are the fundamental building blocks of data. This lesson will go over all the primitive data types supported in PHP.
Learn about how to do arithmetic and work with the math properties and methods provided natively by PHP.
Logic and conditionals are a fundamental part of programming and is how your program or script can make decisions.
Learn how to shorten your code by utilizing loops like for loops, while loops, do while loops, and for in loops.
Functions in PHP allow you to reuse a code block and reduce code repetition which ensures cleaner and more modular code.
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.
Classes in PHP provide a blueprint for the creation of objects which helps organize our code and reduce complexity.
Learn how to express dates and time using PHP's built-in date and time classes and functions.
Learn how to make your website more dynamic by handling input data from forms using GET and POST requests!
PHP allows you to include the contents of another PHP file anywhere you want by using the include and require functions.
Learn how to work with the file system in PHP including how to open, read, write, and close a file.
JSON is the language of data transfer on the web. Learn how to encode and decode JSON in PHP.
Cookies are small pieces of data that you can store on the client. Learn how to work with them in PHP.
PHP sessions allow you to store temporary information about a user on the server like logged-in state or username.
Sending text and HTML mail dynamically in PHP is easy thanks to its built-in function.
Learn how to use regular expressions search patterns to match text and do advanced find and replace operations.
Learn how to use PHP with MySQL, the most popular database management software, with PDO.
No code is ever perfect, so you'll need to know how to handle and log errors when they occur.
Learn how to handle exceptions so that when they happen you can recover gracefully and allow for the script to continue.
This lesson is the last lesson of the class on PHP and serves as the conclusion of the class.