try
echo "<table><tr><td><b>$somevar</b><br>$somevardesc</td></tr></table>";

which is probably better than the other two but don't quote me on that!
You can just include the variables because you have used " rather than ' (I
think it works for echo as well as print)

"Dave At Sinewaves.Net" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Okay,
>
> I want to know if anybody has a clue which is more efficient,
> processorwise/parsingwise:
>
> this:
> ------
> echo
>
"<table><tr><td><b>".$somevar."</b><br>".$somevardesc."</td></tr></table>";
>
> or this:
> ------
> echo
"<table><tr><td><b>{$somevar}</b><br>{$somevardesc}</td></tr></table>";
>
>
> I almost always use the first method (just seems more readable to me), but
> with all of the discussion popping up about curly brackets, i was
wondering
> if it really makes a difference?  Any vets out there care to put in their
> $0.02?
>
> Dave Tichy
> http://sinewaves.net/
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to