Welcome to the tutorial series on PHP. These tutorials will help you get on your way to building powerful applications for the web. If you want to build an online store, social network, or any powerful web-based application then PHP is a great language to try out. PHP is a server-side language that allows you to build dynamic websites and can be used along with database languages such as MySQL to make your app talk to a database.
Before starting these tutorials, it is a good idea to be familiar with HTML and CSS as well as JavaScript – luckily, there are plenty of tutorials to help you out there! If you are new to PHP then start with the first tutorial, otherwise, you can jump ahead if you already have some experience with this language.
- Getting started with PHP
- Echo statements and adding comments to your code
- Using HTML tags in echo statements and string concatenation
- Variables
- Constants
- Data types
- Operators
- If statements
- Else and if else statements
- Switch statements
- For loops
- While loops
- Do while loops
- Break and continue
- Creating and using functions
- Default arguments in a function
- Variable scope
- String length and indexing (strlen function)
- String functions – strpos
- String functions – substr
- String functions – substr_replace and str_replace
- String functions – strtolower and strtoupper
- Introduction to arrays
- Modifying existing values in an array
- Looping through arrays (and counting elements in an array)
- Associative arrays
- Foreach loops
- Array functions – implode and explode
- Array functions – extract
- Sorting arrays
- Slicing (splitting) and merging arrays
- Passing an array into a function
- Include and require functions
- Handling form data
- Form data validation
- More data validation
- Checking set values (radio buttons)
- Check boxes in forms
- Select lists in forms
- Other form elements (text, text area, and password)
- The request method (form handling in one file)
- Date and time
- Ignore or strip HTML tags from strings
- Generate unique IDs and random strings
- More PHP tutorials coming soon!