FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using same variable twice on same page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: OT: Assignment operator (Was: using same variable twice on same page) [message #171391 is a reply to message #171390] Fri, 31 December 2010 16:33 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 12/31/2010 11:12 AM, Jim Higgins wrote:
> On Fri, 31 Dec 2010 11:14:37 +0100, August Karlstrom
> <fusionfile(at)gmail(dot)com> wrote:
>
>> On 2010-12-31 03:07, The Natural Philosopher wrote:
>> [...]
>>> take
>>>
>>> (a=b==c)
>>>
>>> Its very clear which is an assignment and which is a comparison, though
>>> the order or precedence is less so..
>>>
>>> I don't know how you would write than in 'context dependent equals'
>>> language, at all.
>>
>> I'm not advocating "context dependant equals"; I think that a different
>> symbol should be used for assignment, e.g. `:='.
>
>
> You are welcome to think that, but you won't have much success
> programming in PHP unless you use "=" for assignment.
>


By analogy, write down the grade you are in ($grade=12). If you are in
12th grade (if $grade==12) then you may graduate at the end of the year
(all other things equal).

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AND in the if statement
Next Topic: login script using file, not mysql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 19:32:08 GMT 2024

Total time taken to generate the page: 0.04173 seconds