Add an alternative way to control structures (#19259)

This commit is contained in:
Shahriar Rashid Mahmud
2018-10-16 10:27:58 +06:00
committed by Quincy Larson
parent 84c27f7db1
commit 39a9eec9e7

View File

@ -92,5 +92,16 @@ For instance:
Another important option to consider when using short If/Else statements is the ternary operator.
Also there is an alternative syntax for control structures
~~~~
if (condition1):
statement1;
endif;
else
statement5;
~~~~
For more information check out the following link:
<a href='http://php.net/manual/en/control-structures.alternative-syntax.php' target='_blank' rel='nofollow'>PHP Alternative syntax for control structures</a>
For more information please check out the following link:
[PHP: if](http://php.net/manual/en/control-structures.if.php)