Forum Moderators: coopster

Message Too Old, No Replies

Single line of code

         

spyder_tek

12:01 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



Hi,

When using a small piece of code within the html body of a page, does it matter if I use a single line of code VS a formatted one?

For example:

<?php
echo("<img src=\"$file\">");
?>

VS

<?php echo("<img src=\"$file\">");?>

Does it matter, or it just for visual appearence to organize the code?

Thanks.

TommyWeb

12:30 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



Just for visual appaerance ;-)

jatar_k

4:19 pm on Feb 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yeah, doesn't matter. Though just for educational purposes

with short tags on I usually use this

<?= '<img src="',$file,'">'?>

;)

spyder_tek

9:17 am on Mar 2, 2006 (gmt 0)

10+ Year Member



Thanks! I figured it doesn't make a difference. ;)