note 85631 added to control-structures.alternative-syntax

From: Date: Tue, 09 Sep 2008 19:36:23 +0000
Subject: note 85631 added to control-structures.alternative-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-144273@lists.php.net to get a copy of this message
<?php $var = 1; if (TRUE): echo "...content...\n"; if ($var == 1) { echo "done here\n"; endif; } echo "...content...\n"; else: echo "...some other content...\n"; endif; ?> is that posible? if not, how do i skip the 'if', when i want to do so in the 'if' structure? ---- Server IP: 212.199.163.191 Probable Submitter: 147.237.70.105 ---- Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php Edit -- https://master.php.net/note/edit/85631 Del: integrated -- https://master.php.net/note/delete/85631/integrated Del: useless -- https://master.php.net/note/delete/85631/useless Del: bad code -- https://master.php.net/note/delete/85631/bad+code Del: spam -- https://master.php.net/note/delete/85631/spam Del: non-english -- https://master.php.net/note/delete/85631/non-english Del: in docs -- https://master.php.net/note/delete/85631/in+docs Del: other reasons-- https://master.php.net/note/delete/85631 Reject -- https://master.php.net/note/reject/85631 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144273) next »