<?php
 
$P = true;
$Q = true;
 
$cond = ($P xor $Q);
 
echo 'P is '.stringify($P)."\n";
echo 'Q is '.stringify($Q)."\n";
echo 'P xor Q is '.stringify($cond)."\n";
 
 
function stringify($bool)
{
	if ($bool) {
		return 'true';
	}
 
	return 'false';
}