The While Loop

The while loop Another type of loop is WHILE loop. It is used in situations where it is necessary to perform an operation until the condition. Example <? php while…

FOR LOOP

FOR loop Sometimes you need to perform an action specified number of times. It is used for the FOR loop. The overall record looks like this: Example <? php for…

Conditional Statements

Conditional Statements Is used to execute a user (or a block of instructions), but only under certain circumstances - predetermining condition is met (or the whole set of conditions). Example…

Operators

The operators are symbols that are used to manipulate variables. Operators are divided into: 1. The arithmetic operations that are used for numbers. 2. assignment for assigning a value to…

Permanent

Permanent There are also so-called. constant, or character identifiers whose values can not be changed. Permanent is used without a dollar sign at the beginning. Permanent set by PHP __FILE__…

Changing the type

Changing the type It is usually not necessary to determine the type of the variable – PHP itself is determined, depending on the context. When assigning a variable a new…

variable types

variable types • integers (integer) • real numbers (double) • strings (string) • arrays (array) • objects (object) PHP is able to convert the integers stored in different formats numbers.

Variables

 variables Variable is a character identifier that is assigned a value. In PHP variables are determined using the dollar sign (, $ ') before said identifier. In PHP you must…

Comments

Comments Sometimes you have to write a comment in the code to someone else or even for himself. Then you can use one of several methods for the determination by…

Instruction Separation

One of the main Data principles of PHP is to place at the end of each statement with a semicolon (,; ‚). You can skip it if only in a…

Close Menu