From 39a9eec9e727214c0e5bfb6346685c10204e3a1c Mon Sep 17 00:00:00 2001 From: Shahriar Rashid Mahmud Date: Tue, 16 Oct 2018 10:27:58 +0600 Subject: [PATCH] Add an alternative way to control structures (#19259) --- .../guide/english/php/if-else-statement/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/src/pages/guide/english/php/if-else-statement/index.md b/client/src/pages/guide/english/php/if-else-statement/index.md index 760b0f0e0d..4d679a1232 100644 --- a/client/src/pages/guide/english/php/if-else-statement/index.md +++ b/client/src/pages/guide/english/php/if-else-statement/index.md @@ -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: +PHP Alternative syntax for control structures + For more information please check out the following link: [PHP: if](http://php.net/manual/en/control-structures.if.php)