Re: php compiler
| From: | Klaus Reimer | Date: | Sat, 30 Oct 2004 14:32:47 +0000 |
| Subject: | Re: php compiler | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200720@lists.php.net to get a copy of this message | ||
Hodicska Gergely wrote:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
"=" has a "right " associativity. This is well explained on the page you think I have not read. See Example 15-1. "$b = 0" is evaluated first and the "1 && $b" is evaluated after that. Everything else would make no sense. "(1 && $b) = 0" is not a valid expression and throws an error. -- Bye, K <http://www.ailis.de/~k/> (FidoNet: 2:240/2188.18) [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger k@ailis.de to get public key)$a = 1 && $b = 0 PHP sees two expressions here:After the precedence table the first thing should be evaluating 1 && $b, so we get: $a = false = 0 Which is not meaningful thing, and maybe this cause that the evaluating of the statment is not in the right order.
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc