Posted by Stefan Weiss on 06/17/05 04:46
Hi.
function printx($str) {
echo $str;
}
true && printx("foo");
true && print("bar");
Why do I see "foo", but not "bar"?
According to the manual, print and echo are language constructs, not
functions. That seems to be the reason why they don't behave as
expected, but what I'm looking for is an explanation. Is there a
rationale for not executing print() in this context?
tia,
stefan
[Back to original message]
|