[PHP-DEV] operator strange behaviour

2004-10-30 Thread Hodicska Gergely
Hi! I tried to get answer on the general list, but I didn't get. I have a little example, which generate strange output. $a = 0; $b = 1; if ($a = 1 && $b = 0) { echo 'true '; var_dump($a); var_dump($b); } else { echo 'false '; var_dump($a); var_dump($b); } Runing this we get

Re: [PHP-DEV] operator strange behaviour

2004-10-30 Thread Robert Cummings
On Sat, 2004-10-30 at 14:45, Hodicska Gergely wrote: > Hi! > > I tried to get answer on the general list, but I didn't get. > I have a little example, which generate strange output. > > $a = 0; > $b = 1; > if ($a = 1 && $b = 0) { > echo 'true '; > var_dump($a); > var_dump($b); > }

Re: [PHP-DEV] operator strange behaviour

2004-10-30 Thread Derick Rethans
On Sat, 30 Oct 2004, Hodicska Gergely wrote: > I tried to get answer on the general list, but I didn't get. > I have a little example, which generate strange output. This is the wrong list, see http://php.net/support Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdeb

Re: [PHP-DEV] operator strange behaviour

2004-10-30 Thread Derick Rethans
On Sat, 30 Oct 2004, Hodicska Gergely wrote: > > This is the wrong list, see http://php.net/support > Oke, which one do you suggest? I thought that the developer of the > language could answer this question. We can, but you still should ask on the [EMAIL PROTECTED] mailinglist. Derick -- Deric

Re: [PHP-DEV] operator strange behaviour

2004-10-30 Thread Hodicska Gergely
This is the wrong list, see http://php.net/support Oke, which one do you suggest? I thought that the developer of the language could answer this question. Felho -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php