Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #13888

Re: why is it always an endless loop?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Date Mon, 16 Jun 2014 20:32:11 +0200
From Luuk <luuk@invalid.lan>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version 1.0
Newsgroups comp.lang.php
Subject Re: why is it always an endless loop?
References <qw7xoz3y22k8.h8pla1goojcr$.dlg@40tude.net>
In-Reply-To <qw7xoz3y22k8.h8pla1goojcr$.dlg@40tude.net>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <bqp37b-ihq.ln1@luuk.invalid.lan> (permalink)
Lines 16
NNTP-Posting-Host 2001:980:9089:1:f4f1:7b4e:d6a:4576
X-Trace 1402944001 news.xs4all.nl 2939 [2001:980:9089:1:f4f1:7b4e:d6a:4576]:42754
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.php:13888

Show key headers only | View raw


On 16-6-2014 18:06, richard wrote:
>
> $a="one"
> $b="one"
>
> while ($a=$b){echo "equal"; $b="two";)
>
> This simple code causes an endless loop.
> Why?
>
> As soon as $b is changed, they are no longer equal, yet the loop continues.
> This does not happen in BASIC.
> If it is placement, where then should $b be placed?
>

Did someone already say to you that you asked this before?

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

why is it always an endless loop? richard <noreply@example.com> - 2014-06-16 12:06 -0400
  Re: why is it always an endless loop? Markus Heinz <markus.heinz@uni-dortmund.de> - 2014-06-16 18:17 +0200
  Re: why is it always an endless loop? Derek Turner <frderek@cesmail.net> - 2014-06-16 16:19 +0000
  Re: why is it always an endless loop? Stephan Jaschke <stephan@stj-online.de> - 2014-06-16 18:19 +0200
  Re: why is it always an endless loop? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-06-16 16:35 +0000
  Re: why is it always an endless loop? Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-16 17:27 +0000
  Re: why is it always an endless loop? "J.O. Aho" <user@example.net> - 2014-06-16 20:09 +0200
  Re: why is it always an endless loop? Luuk <luuk@invalid.lan> - 2014-06-16 20:32 +0200
  Re: why is it always an endless loop? Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-16 21:41 +0200
  Re: why is it always an endless loop? Tim Streater <timstreater@greenbee.net> - 2014-06-16 21:45 +0100
    Re: why is it always an endless loop? Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-16 21:19 +0000
      Re: why is it always an endless loop? Evan Platt <evan@theobvious.espphotography.com.invalid> - 2014-06-16 20:39 -0700
  Re: why is it always an endless loop? Arno Welzel <usenet@arnowelzel.de> - 2014-06-17 08:20 +0200
  Re: why is it always an endless loop? Arno Welzel <usenet@arnowelzel.de> - 2014-06-17 08:22 +0200
    Re: why is it always an endless loop? Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-17 15:13 +0000

csiph-web