Search found 1 match

by joby65
Fri Dec 19, 2008 10:06 am
Forum: PHP - Code
Topic: Excessive PHP Tags
Replies: 1
Views: 142

Excessive PHP Tags

Is it more efficient to use a single open and close tag (<?php ?>) and output html using echo, or should many php tags be used so that html is outputted normally?. Example: 1. <?php if(condition) { echo 'some html'; } ?> 2. <?php if(condition) { ?> some html <?php } continue ph script ?>