note 61368 deleted from function.echo by betz

From: Date: Wed, 30 Aug 2006 16:49:10 +0000
Subject: note 61368 deleted from function.echo by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116516@lists.php.net to get a copy of this message
Note Submitter: bennyhur at gmail dot com ---- in response to: "This is a beauty for lots of text, really. And easy to read, if you're a PERL or shell person." If you use an editor like Dreamweaver that can show you a somewhat rendered version of the page, you can output large blocks of text/html by doing the following: <?php if(boolean_function()) { ?> <p>You successfully made the boolean funciton return true</p> <p>blah blah blah....</p> <?php } else { ?> <p>Sorry, but you didnt make the boolean true!</p> <?php } //more code... ?> As opposed to using the "dochere" syntax. I find it's much easier to move around in large scripts when I output HTML like this because I can just click on the text near the code I need to edit in Dreamweavers display view, and then switch to code view and I'm right were I need to be.

« previous php.notes (#116516) next »