PHP Basic
PHP Introduction
PHP is a server-side scripting language.
What You Should Already Know
Before you continue you should have a basic understanding of the [...]
PHP Installation
Apache friends Xampp
Download xampp and install all at once!
What do you Need?
If your server supports PHP you don’t [...]
PHP Syntax
PHP code is executed on the server, and the plain HTML result is sent to the [...]
PHP Variables
A variable is used to store information.
Variables in PHP
Variables are used for storing a values, like text strings, numbers [...]
PHP String Variables
A string variable is used to store and manipulate text.
String Variables in PHP
String variables are used for values that contains [...]
PHP Operators
Operators are used to operate on values.
PHP Operators
This section lists the different operators used in PHP.
Arithmetic Operators
Operator
Description
Example
Result
+
Addition
x=2
[...]
PHP If…Else Statements
Conditional statements are used to perform different actions based on different conditions.
Conditional Statements
Very often when you write code, [...]
PHP Switch Statement
Conditional statements are used to perform different actions based on different conditions.
The PHP Switch Statement
Use the switch statement [...]
PHP Arrays
An array stores multiple values in one single variable.
What is an Array?
A variable is a storage area holding a number [...]
PHP Looping – While Loops
Loops execute a block of code a specified number of times, or while a specified condition is true.
PHP [...]
PHP Looping – For Loops
Loops execute a block of code a specified number of times, or while a specified condition [...]
PHP Functions
The real power of PHP comes from its functions.
In PHP, there are more than 700 built-in functions.
PHP Functions
In this chapter [...]
PHP Forms and User Input
The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input.
PHP Form Handling
The [...]
PHP $_GET Function
The built-in $_GET function is used to collect values in a form with method="get".
The $_GET Function
The [...]
PHP $_POST Function
The built-in $_POST function is used to collect values in a form with method="post".
The $_POST Function
The [...]
