note 97622 added to control-structures.alternative-syntax

From: Date: Wed, 28 Apr 2010 18:25:45 +0000
Subject: note 97622 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-168766@lists.php.net to get a copy of this message
@EJ That syntax is called the "tertiary if statement". It's not quite the same topic, but tertiaries can clean up what might otherwise be very ugly code. The "alternative control syntax" may not be familiar to all php coders. If your code will be maintained by more people than just you, you may want to stick to the more common syntax. It could prevent future bug crops. ---- Server IP: 69.147.83.197 Probable Submitter: 65.25.71.95 ---- Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php Edit -- https://master.php.net/note/edit/97622 Del: integrated -- https://master.php.net/note/delete/97622/integrated Del: useless -- https://master.php.net/note/delete/97622/useless Del: bad code -- https://master.php.net/note/delete/97622/bad+code Del: spam -- https://master.php.net/note/delete/97622/spam Del: non-english -- https://master.php.net/note/delete/97622/non-english Del: in docs -- https://master.php.net/note/delete/97622/in+docs Del: other reasons-- https://master.php.net/note/delete/97622 Reject -- https://master.php.net/note/reject/97622 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168766) next »