leegold2
Technical User
- Oct 10, 2004
- 116
Note I posted this on a PHP newsgroup and I did get a detailed response from another poster. But I was a bit shocked - it seems that there's a bundle of what seems to me extra functionality in the print function. "Print()" just doesn't send the evaluated argument to output - it does all sorts of extra stuff... could someone try to explain this? I see it as mysterious at this point...
Hi,
print '12 == 12 : '; print 12 == 12;
this works, I get:
12 == 12 : 1
but I tried to shorten it:
print '12 == 12 : ' . print 12 == 12;
I get:
112 == 12 : 1
What's that extra "1" ( meaning true I assume) at the front of the output?
Thanks
Hi,
print '12 == 12 : '; print 12 == 12;
this works, I get:
12 == 12 : 1
but I tried to shorten it:
print '12 == 12 : ' . print 12 == 12;
I get:
112 == 12 : 1
What's that extra "1" ( meaning true I assume) at the front of the output?
Thanks