note 80494 added to faq.html

From: Date: Fri, 18 Jan 2008 21:56:41 +0000
Subject: note 80494 added to faq.html
Groups: php.notes 
Request: Send a blank email to php-notes+get-135207@lists.php.net to get a copy of this message
You can also stop and start PHP interpreting anywhere in the script (as long as it doesn't get in the way of the PHP syntax). Example: <?php // $Comment=true; if(isset($Comment)) { ?> The $Comment variable exists! <b>:D</b><br /> HTML or text can be printed here, anything here will not be parsed as PHP unless you redeclare the PHP start tag: <b>&lt;?php ...</b> <?php } else { ?> The $Comment variable doesn't exist. <b>:(</b><br /> Same again, you can add anything in here, maybe even a whole HTML page..? <b>:O</b> <?php } ?> I'm not quite clear on which versions it works with, It's tested on PHP5 so I'm not too sure of the previous versions. Hope someone can find use with this, instead of echo'ing tonnes of HTML data. CP. ---- Server IP: 194.145.210.3 Probable Submitter: 81.178.209.33 ---- Manual Page -- http://www.php.net/manual/en/faq.html.php Edit -- https://master.php.net/note/edit/80494 Del: integrated -- https://master.php.net/note/delete/80494/integrated Del: useless -- https://master.php.net/note/delete/80494/useless Del: bad code -- https://master.php.net/note/delete/80494/bad+code Del: spam -- https://master.php.net/note/delete/80494/spam Del: non-english -- https://master.php.net/note/delete/80494/non-english Del: in docs -- https://master.php.net/note/delete/80494/in+docs Del: other reasons-- https://master.php.net/note/delete/80494 Reject -- https://master.php.net/note/reject/80494 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135207) next »