View Single Post
Old 10-25-2007, 02:47 PM   #27 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

not sure if you know about this, but there is an alternative syntax that you can use for your conditions, I always use this when mixing PHP with XHTML:

PHP Code:

<div>
<?php if ($something 1): ?>
   Something else...
<?php endif; ?>
</div>
I think it looks better than using the curly braces.
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Karl is offline  
Reply With Quote