RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs. [solved]

2003-04-05 Thread Daevid Vincent
CTED] > Subject: RE: [PHP] Re: Found a bug in 4.2.3 re: and echo > vs. > > > You are getting completely mixed up. Simplifying your example: > > function foo() { echo "foo"; } > > $a = "".foo().""; > > Will you a

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Rasmus Lerdorf
You are getting completely mixed up. Simplifying your example: function foo() { echo "foo"; } $a = "".foo().""; Will you agree that this is bogus code? foo() is not going to return anything, so the resulting value of $a is going to be "". Correct? But while that assignment is

Re: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Leif K-Brooks
Neither works. You're doing something like this in your other code: function foo(){ echo "foo"; } echo foo(); The foo() doesn't return the (non-existant) value from echo, it simply echo()s and returns nothing, and there's nothing wrong with echo()ing nothing. It would fail if you were using

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Daevid Vincent
Mmm. I'm still not following and not completely convinced. Changing "echo alarmLightYMD();" to simply "alarmLightYMD();" in the bottom function doesn't print anything in the table cell at all (for the first test case). While your idea at first makes sense and does seem like a newbie mistake (and