if variable is x or y php code example Example: if not php $a = true; if(!$a) { echo "False"; // Will return this } else { echo "True"; }