Php Select If

The phase of if, else and else if in PHP are same with in C/C++;

Following shows an example of using the selection/condition branch in PHP.

Code:

Result: Variable in condition > 0