The function is a piece of code that can be called using the name. We have already been given several functions provided by PHP, such as array (), each (), list (), explode () and implode (). Features recognized by the parentheses occurring after their name. In these brackets (if required) is given parameters for the function. Some functions
These are variables containing a structured set of variables. For those variables is accessed by a number in brackets given immediately after the variable name – the array. This number is called the index – the number of the variable in the array. The same is assigned a value to the array.
$ Array = “Entering number 0”;
$ Array = “Entering number 1”;
$ Array = “Entering the number 2”;
Syntax switch Syntax switch is a conditional statement, but one variable can be compared not with one value, but with a few. You can not construct complex conditions - can…
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 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…