File-Inclusion Statements Efficient programmers are always thinking in terms of ensuring reusability and modularity. The most prevalent...

File-Inclusion Statements Efficient programmers are always thinking in terms of ensuring reusability and modularity. The most prevalent...
Looping Statements Although varied approaches exist, looping statements are a fixture in every widespread programming language. Loopi...
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...