> Thanks for the replies...... I tried both recommendations and they both
> work
>
> Dave... can you explain why you didn't use <br> instead of <br />
> Also why you put   , ","    in after the "<br />"   ... I took the   ,
> ","  out and it also worked
> I just want to thoroughly understand this
>

Sure.

1. <br /> is simply the XHTML-compliant way of the <br> tag (since it's a
singleton tag, which is to say that it has no closing tag).

2. The last option, the ",", is an optional parameter to the function where
you explicitly pass in the delimiter used in the file. In your case, your
delimiter was a comma, which is what the function defaults to if you don't
specify that last argument. However, I always explicitly type out all
arguments in my code so that if another developer comes along, they don't
have to guess what I'm doing. In your case, if another developer comes
along, how do they know for sure that the delimiter is a comma versus a tab?
(Of course, I ask that question in the context of a developer who didn't
know that the comma was the default delimiter.) In my coding, I constantly
ask myself those sorts of questions, which leads to cleaner, clearer code.

What I'm trying to say is that there's no *functional* reason why I did
either of the above, but I like to make both my own life and the lives of my
co-workers as easy as possible so that we can focus of bigger picture items
instead of tracking down minor syntax/semantic issues.

Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to