vindaloo
07-14-2003, 08:34 AM
Hi,
I've seen the following statement in a PHP tutorial:
echo "<H1>Error:".$error."</H1>";
However, the PHP manual suggests using a simpler form without the concatenation, as in:
echo "<H1>Error:$error</H1>";
They both give the same result here, but can there ever be an advantage of using one over the other, or is it just personal preference?
Thanks,
Vindaloo
I've seen the following statement in a PHP tutorial:
echo "<H1>Error:".$error."</H1>";
However, the PHP manual suggests using a simpler form without the concatenation, as in:
echo "<H1>Error:$error</H1>";
They both give the same result here, but can there ever be an advantage of using one over the other, or is it just personal preference?
Thanks,
Vindaloo