• Teach Your Self With
             w3htmlschool.com

PHP if, else, and else if Control Stucture

The basic control structre is if.statement.Php if allow you to take two condition.
Example
Example Output

Syntax


for (Parameter; Condition; Parameter 2)
{
Code to be run
}

Parameter


NameDescriptionRequired /Optional
ParameterInitialize the loop counter value
ConditionIf it condition evaluates to TRUE, the loop continues. If it condition evaluates to FALSE, the loop ends.Required
Parameter 2Increment or Decrements the variableOptional