Equality Operators Equality operators (see Table below) , as the name suggest, are used to compare two values, testing for equivale...
Equality Operators Equality operators (see Table below) , as the name suggest, are used to compare two values, testing for equivale...
Assignment Operators The assignment operators assign a data value to a variable . The simplest form of assignment operator just assign...
All expressions consist of at least one operand and one or more operators. A few examples follow: $a = 5; // assign integer value 5 to...
A constant is a value that cannot be modified throughout the execution of a program. Constants are particularly useful when working with ...
Retrieving Information Stored Within Cookies The $_COOKIE superglobal stores information passed into the script through HTTP cookies. ...
PHP’s Superglobal Variables PHP offers a number of useful predefined variables that are accessible from anywhere within the executing sc...
Function Parameters In PHP, as in many other programming languages, any function that accepts arguments must declare those arguments in ...
Variable Scope However you declare your variables (by value or by reference), you can declare them anywhere in a PHP script. The locat...
Identifiers Identifier is a general term applied to variables, functions, and various other user-defined objects. There are several p...
Converting Between Data Types Using Type Casting Converting values from one datatype to another is known as type casting. A variable ...
A datatype is the generic name assigned to any data sharing a common set of characteristics. Common data types include Boolean, integer...
Of course, even the simplest of dynamic web sites will output data to the browser, and PHP offers several methods for doing so. Note...
Because documentation is such an important part of effective code creation and management, considerable effort has been put into devis...
One of PHP’s advantages is that you can embed PHP code directly alongside HTML. For the code to do anything, the page must be passed t...
So far you have learnt about prerequisites for PHP to run on your computer, installation and configuration procedures (of PHP/Apache/IIS)...