Source |
CodingSec |
Identifiant |
117051 |
Date de publication |
2016-09-23 17:00:11 (vue: 2016-09-23 17:00:11) |
Titre |
How statement control works in PHP |
Texte |
Control statements in PHP are used to control the flow of execution in a script. There are three categories of control statements in PHP: selection statements, iteration / loop statements and jump statements. Selection statements The selection statements in PHP allows the PHP processor to select a set of statements based on the truth value of a condition or Boolean expression. Selection statements in PHP are if, if-else, elseif ladder and switch statement. Syntax of if is given below: 1 2 3 4 if(condition / expression) { Â Â statements(s); } Syntax of if-else is given below: 1 2 3
|
Envoyé |
Oui |
Condensat |
allows appeared are based below: boolean categories coding condition control else elseif execution expression first flow given how iteration jump ladder loop php php: post processor script security select selection set statement statements switch syntax three truth used value works â â |
Tags |
|
Stories |
|
Notes |
|
Move |
|