Re: Found a bug in 4.2.3 re: <TD> and echo vs. <?php?>
| From: | Pablo | Date: | Sat, 05 Apr 2003 05:41:27 +0000 |
| Subject: | Re: Found a bug in 4.2.3 re: <TD> and echo vs. <?php?> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142485@lists.php.net to get a copy of this message | ||
On 04/04/2003 11:20 PM, Leif K-Brooks (eurleif@buyer-brokerage.com) wrote:
> Of course you can concatenate a string with a function! It works
> perfectly for me.
So both tables in the output look the same? Not for me under PHP 4.3.0:
(1)
<TR><IMG SRC='images/light_red.gif'><TD></TD><TD>this
fails!</TD></TR>
(2)
<TR>
<TD><IMG SRC='images/light_red.gif'></TD>
<TD>this works</TD>
</TR>
If I change '.' to ',' in this line:
echo "<TD>".alarmLightMySQL()."</TD>";
I get the expected result:
<TR><TD><IMG SRC='images/light_red.gif'></TD><TD>this
fails!</TD></TR>
It appears that - in this case, at least - one cannot concatenate a string
with a function. I never meant to imply that this made sense.
Pablo