note 89860 added to control-structures.alternative-syntax

From: Date: Thu, 26 Mar 2009 09:43:46 +0000
Subject: note 89860 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-152463@lists.php.net to get a copy of this message
It seems to me, that many people think that <?php if ($a == 5): ?> A ist gleich 5 <?php endif; ?> is only with alternate syntax possible, but <?php if ($a == 5){ ?> A ist gleich 5 <?php }; ?> is also possible. alternate syntax makes the code only clearer and easyer to read ---- Server IP: 217.13.201.10 Probable Submitter: 92.225.33.175 ---- Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php Edit -- https://master.php.net/note/edit/89860 Del: integrated -- https://master.php.net/note/delete/89860/integrated Del: useless -- https://master.php.net/note/delete/89860/useless Del: bad code -- https://master.php.net/note/delete/89860/bad+code Del: spam -- https://master.php.net/note/delete/89860/spam Del: non-english -- https://master.php.net/note/delete/89860/non-english Del: in docs -- https://master.php.net/note/delete/89860/in+docs Del: other reasons-- https://master.php.net/note/delete/89860 Reject -- https://master.php.net/note/reject/89860 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152463) next »