Category Archives: PHP Tutorials

PHP Include

(from Full Article) The include command can save you a lot of time as you can create a header, place it in a file and just include that file on every page and the header will be shown. This will also mean that you do not need to edit every page every time you need [...]

PHP IF Statement

(from Full Article) In PHP IF statements are extensively used.  It allows you to show the user data depending on certain conditions. The best way to describe it is with the use of an example: You want to build a dashboard with items you do not want all employees to see, this is where IF [...]

PHP Operators

(from Full Article) Here are most types of PHP Operators: Assignment Operators, Arithmetic Operators, Comparison Operators, and String Operators. Assignment Operators We have already met this type. This is where we set a variable equal to something or make a variable equal to another variable. Arithmetic Operators English Operator Example Addition + 1+1 Subtraction – [...]

PHP Concatenation

(from Full Article) We can display our variables in a meaningful fashion with the use of concatenation. Concatenation makes use of the period (.). Please see the example below which is an example of affixing a value to the end of the variable: <?php $name = “Marc”; $name .= “Fraser”; ?> Basically what ‘.=’ is [...]

PHP Variables

(from Full Article) Variables are important to PHP. A variable is a way of storing a value, such as text (“Hello”), numeric values (such as the integer value of 1) and also Boolean values (true and false). A variable can be re-used throughout your code instead of typing out the value over and over again. [...]