In this PHP Tutorial you will learn about PHP Data Types viz. Numeric values, String values, Boolean values, Arrays, Objects and NULL
Numeric values:
There are two numeric values in PHP, they are:
1. integer: Integer numbers don’t have floating point, for example, 5, 12, 1567
2. real: or floating point numbers, real number has a floating point, for example, 2.3
There are three ways to represent the numeric values:
1. base 10 numbers: They are represented using digits from 1 to 9, with an optional (.) for floating point if the value is real.
2. base 8 numbers: They are represented by preceding the number by zero ‘0’, and it only permits the digits from 0 to 7, example 023, which is the same as 19
3. base 16 numbers: They are represented by preceding zero and x ‘0x’, and it permits the digits from 0 – 9 and characters from ‘A’ to ‘F’, for example, 0x3f, which is the same as 63
PHP Data Types
In this tutorial you will learn about PHP Syntax - Syntax for Writing a script, Scripts VS. File and Comments
Writing a script:
To embed PHP code inside a file, it has to be inside a special set of opening and closing tags.
PHP supports the following tags sets:
1. Opening (< ?php) and closing (? >)
2. Opening (< ?) and closing (? >)
3. Opening (< %) and closing (% >)
4. Opening (< script language=”php” >) and closing (< /script >)
PHP Syntax
In this tutorial you will learn about PHP - Installation steps involved in Installing Apache server, Installing PHP 4 and Installing PHP 5.
Installing Apache server:
1- Download the installer from Apache site:
http://httpd.apache.org/download.cgi
2- Double-click on the installer file to start the installation process.
3- You will get a welcome screen, select Next to continue the installation process.
4- You will be prompted to accept the Apache license.
5- After you accept the license, the installer presents you with a brief introduction to Apache.
6- Then the installer will ask you to provide basic information about your computer.
7- The next screen enables you to choose the type of installation.
8- If everything goes well, it will present you with the final screen.
PHP Installation
In this tutorial you will learn about PHP - Introduction to PHP, What you should already know? What’s PHP? What’s the difference between PHP and HTML? When to use PHP? What makes PHP a choice among the other scripting languages?
PHP Introduction