PHP » Operators » ^=

Syntax:
$var ^= expression
var
A variable.
expression
Value to XOR the variable with.

Bitwise XOR assignment operator.

The variable is assigned the value of var ^ expression.

Examples

Code:
<?php

$a = 11;
$a ^= 15;
printf("%b", $a);

?>
Output:
100
Explanation:

A variable is changed with an assignment operator.