Posted by Geoff Muldoon on 03/23/07 02:52
freeculture@NOSPAMlibero.it says...
>
> function foo() { return 'Hello World!'; }
> if ( $str = foo() || $str = foo() ) echo $str;
>
> What should output this piece of code?
> I think it's not normal what's outputting to me...
>
> Let me know. :-)
> Maverick
It should (and I presume does) return 1.
I presume you just don't know why.
Geoff M
[Back to original message]
|