There has been some minor discussions about short tags recently in other threads, saying that they are bad because of compability issues, in case some script is moved to a server where short tags has been disabled.
I'm just curious, does the short tag setting also include the short constructs like if, else, foreach etc. (which I find very helpful at times)? If you don't know what i'm talking about ('cause I don't really know what they're called) i mean the ability to write like this:
PHP Code:
<?php if($some_var == 'some_value'): ?>
<p>This is noraml html code</p>
<?php else: ?>
<p>Hmm, seems some variable doesn't have some value.</p>
<?php endif; ?>
<?php foreach($alphabet as $letter): ?>
<div>
<p><?=$letter?> is part of the alphabet!</p>
</div>
<?php endforeach; ?>
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|