note 96772 added to control-structures.if

From: Date: Mon, 15 Mar 2010 18:43:11 +0000
Subject: note 96772 added to control-structures.if
Groups: php.notes 
Request: Send a blank email to php-notes+get-167069@lists.php.net to get a copy of this message
There is a *very* handy feature of if, when you are using large blocks of text, where you can contain a closing php tag and an opening php tag: <?php if($somevar==1){ ?> This text will show up if $somevar is 1.<br /> etc etc etc etc <?php }else{ ?> This text will show up if $somevar isn't 1.<br /> etc etc <?php } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 85.211.96.186 ---- Manual Page -- http://www.php.net/manual/en/control-structures.if.php Edit -- https://master.php.net/note/edit/96772 Del: integrated -- https://master.php.net/note/delete/96772/integrated Del: useless -- https://master.php.net/note/delete/96772/useless Del: bad code -- https://master.php.net/note/delete/96772/bad+code Del: spam -- https://master.php.net/note/delete/96772/spam Del: non-english -- https://master.php.net/note/delete/96772/non-english Del: in docs -- https://master.php.net/note/delete/96772/in+docs Del: other reasons-- https://master.php.net/note/delete/96772 Reject -- https://master.php.net/note/reject/96772 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167069) next »