Add an alternative way to control structures (#19259)
This commit is contained in:
committed by
Quincy Larson
parent
84c27f7db1
commit
39a9eec9e7
@ -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)
|
||||
|
Reference in New Issue
Block a user