Php Tutorial
Learn Php interactively. Read the concept and write code to practice.
1. PHP Introduction
PHP (PHP: Hypertext Preprocessor) is a widely-used, open source scripting langua...
2. PHP Syntax & Comments
A PHP script can be placed anywhere in the document. PHP statements end with a ...
3. PHP Variables
Variables are "containers" for storing information. In PHP, a variable starts w...
4. PHP Echo and Print
In PHP, there are two basic ways to get output: `echo` and `print`. They are mo...
5. PHP Data Types
Variables can store data of different types, and different data types can do dif...
6. PHP Strings
A string is a sequence of characters, like "Hello world!". **PHP String Functio...
7. PHP Math
PHP has a set of math functions that allows you to perform mathematical tasks on...
8. PHP If...Else...Elseif
Conditional statements are used to perform different actions based on different ...
9. PHP Switch
The `switch` statement is used to perform different actions based on different c...
10. PHP Loops
Often when you write code, you want the same block of code to run over and over ...
11. PHP Arrays
An array stores multiple values in one single variable. In PHP, the `array()` f...
12. PHP Functions
Besides the built-in PHP functions, it is possible to create your own functions....
13. PHP Function Arguments
Information can be passed to functions through arguments. An argument is just li...
14. PHP Superglobals
Some predefined variables in PHP are "superglobals", which means that they are a...
15. PHP OOP Classes/Objects
From PHP 5, you can also write PHP code in an object-oriented style. Object-Ori...