/    Sign up×
Community /Pin to ProfileBookmark

operator ^= what exactly it does

what is the action of the operator ^= ?

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmJul 15.2013 — Why do you ask? Do you have an example of it being used somewhere?
Copy linkTweet thisAlerts:
@programAngelauthorJul 15.2013 — I preparing to job interview and I am doing some online test and they used it.
Copy linkTweet thisAlerts:
@ginerjmJul 15.2013 — And - in what context did they use it?
Copy linkTweet thisAlerts:
@ginerjmJul 15.2013 — Ok - once again I did the research for someone too lazy to make the slightest effort (some job hiree you're gonna be!).

http://msdn.microsoft.com/en-us/library/0zbsw2z6.aspx

Just curious. Does this job involve C# programming? Because if it does, you should have at Least looked in your C# reference as a start.
Copy linkTweet thisAlerts:
@NogDogJul 15.2013 — Start here when you don't know/understand any PHP operator: http://us1.php.net/manual/en/language.operators.precedence.php

Frankly, I reckon the bit-wise Xor assignment operator is used in something like one in a million* PHP scripts (if that many), making it a rather useless interview question for at least 99%* of the PHP jobs out there. ?

________________
  • * Caution: 68.3% of all statistics are made up.
  • Copy linkTweet thisAlerts:
    @programAngelauthorJul 16.2013 — ginerjm this is the [B]php[/B] section, so my question was about [B]php[/B], not c#.

    Your answer is totally irrelevant.

    I tried to find it via google but the results confuse me.

    Never mind.

    NogDog, thank you.
    Copy linkTweet thisAlerts:
    @ginerjmJul 16.2013 — My answer was the only answer that matched your question about ^=. Since it is not specifically referenced in the PHP manual, I decided to branch out in the research I was doing for you(!) and offered up the only documented usage I found.

    Do your own research next time and you won't have to put up with potentially misleading results.

    Oh - and sorry to hear about your inability to understand some information you found on google. Can't wait to see how you handle your first set of job specs.
    Copy linkTweet thisAlerts:
    @programAngelauthorJul 16.2013 — ginerjm, this is a php section, why would I ask question here about c#?

    Anyway I don't understand your problem, I asked question about something specific, because I see this forum as a place to ask specific question, if you don't want to answer you don't have to.

    Just don't patronize!
    ×

    Success!

    Help @programAngel spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.8,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...