Repetitive commands in php (for – while – do / while)

Repetitive comands in php are similar to the C language. Structure for: for ([Initialization of the variable]; [Condition]; [Increase or decrease of the variable]) { [Instructions]; } The first example we will do is show on the page the numbers from 1 to 100: html> <head> <title> Problem </title> </head> … More Repetitive commands in php (for – while – do / while)

Conditional commands and their use if else elseif in php

When the program is intended, after reaching a certain point, to take a specific path in certain cases and a different path if the execution conditions differ, the set of instructions is used: if, else and elseif The basic structure of this type of instructions is as follows: if (Condition) … More Conditional commands and their use if else elseif in php