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
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
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
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
4 matches
Mail list logo