<?php
$a = 5;
$b = 10;

if ($a == 5 xor $b == 5) {
echo “Only one condition is true.”;
} else {
echo “Both conditions are true or both are false.”;
}
// Output: Only one condition is true.
?>