Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Derek Turner Newsgroups: comp.lang.php Subject: Re: why is it always an endless loop? Date: 16 Jun 2014 16:19:23 GMT Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net GB2ZlKtXzyKLMMstNwVJ9QTTQ1BvWg0Xb/GZTcoKkJ99Cn6QqQ Cancel-Lock: sha1:f19/JN/Pq/wb7xVe2gkW5AFZ2QI= User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.php:13877 On Mon, 16 Jun 2014 12:06:26 -0400, richard wrote: > 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? because ($a=$b) sets $b to the same as $a and returns true. That's not what you were trying to do, was it. And you have been told this a thousand times before, haven't you?. And WTF has basic, which has different syntax altogether got to do with it. HINT if you want to use PHP then write code in (correct) php syntax.